I have a search modal that pops up once you click an icon, I currently have autofocus="autofocus"
on the input and it's not working in FF (Firefox). It seems to be working properly in Chrome. I've been trying to implement various JS
to workaround this issue with no luck.
Any help would be greatly appreciated!
This is the last JS
I've tried:
<script type="text/javascript">
$('#search').on('shown.bs.modal', function() {
$(this).find('#searchbar').focus();
});
</script>
...and tried this before that:
<script type="text/javascript">
$('#searchbar').focus();
</script>
No dice.