$("#myModal").modal('toggle') code example Example: open modal in jqwuery $("#myModal").modal('show')