5
<select class="form-control dropup bs-select-hidden" name="sys_nivel_acesso_id">
</select>
<div class="btn-group bootstrap-select form-control dropup">
<button class="btn dropdown-toggle btn-default" data-toggle="dropdown" type="button" title="-----">
</div>
Hello, I would like a help to select via jQuery the element button from the element select by name sys_nivel_acesso_id with the intention of giving out Focus.
I’ve tried to:
$('select[name="sys_nivel_acesso_id"]').next('div button').focus()$('select[name="sys_nivel_acesso_id"]').next('div').next('button').focus()
But it didn’t work.
But you want any change in
selectgive thefocus?– gustavox
No, just a simple line of code to give the Focus. Example: if it were p any other element,
$(elemento).focus();Since the button has no name and no id, I want to pick it up by the select above.– Rodrigo V. Lagos Eustáquio
$('select[name="sys_nivel_acesso_id"]').next().find('button')Enough for what I see in your HTML– Sergio