add bootstrap modal object to var code example Example: programmatically show modal boostrap $('#myModal').modal('show');