Closed ali-heydari-1989 closed 4 years ago
$("#testModal").modal('show');
Official doc here : https://getbootstrap.com/docs/4.3/components/modal/#modalshow
Thank you for reference but it does not work
searchFarsi.js:43 Uncaught TypeError: $(...).modal is not a function
at initSearch (searchFarsi.js:43)
at HTMLDocument.
Add this to your header :
Can you send your HTML+JS if this doesn't fix ?
@Farham0 Hi, is your problem solved ? Can you close this Issue ?
Close due to lack of activities. Please feel free to reopen with new information.
Thanks @djibe for your help.
When I am trying to open the modal with the following code, I get the error modal is not a function, I am sure I brought the library and I can trigger modal with a button .
$("#testModeal").modal({ show: true });