I need help here.
My setup:
Add page with modal enabled.
#x_myField is TEXT.
By default when the modal shown it set focus on Add button.
I need change this focus to #x_myField.
Startup Script:
$(document).ready(function() {
$("#ewModalDialog").on("shown.bs.modal", function() {
$("#x_myField").focus();
});
});
But it still focus on Add button.