SyntaxFix
Write A Post
Hire A Developer
Questions
Use the following code
$("#modal").trigger('click');