javascript code to open and close modal code example Example: open modal in jqwuery $("#myModal").modal('show')