How do I set focus in modal pop up?
tab, shift + tab and enter key and focus should be trapped inside modal and should not go out after pressing tab key multiple times.
How do you target a modal in JavaScript?
To trigger the modal window, you need to use a button or a link. Then include the two data-* attributes: data-toggle="modal" opens the modal window. data-target="#myModal" points to the id of the modal.