I have this generated code:
<select class="generic-widget" id="auth_user_group_id" name="group_id">
<option value=""></option>
<option value="2">admin</option>
<option value="3">user</option>
<option value="1">guest</option>
</select>
I need use JS to delete the guest option and try to set the user option like default...
I tried with this JQuery code to delete the guest option, but something fails:
<script>
$('option').each(function(){
if($(this).attr('value') == '1') {
$(this).remove();
}
});
</script>