{"id":1381,"date":"2022-08-30T15:16:03","date_gmt":"2022-08-30T15:16:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/15\/jquery-modal-not-working-second-time-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:16:03","modified_gmt":"2022-08-30T15:16:03","slug":"jquery-modal-not-working-second-time-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jquery-modal-not-working-second-time-collection-of-common-programming-errors\/","title":{"rendered":"Jquery modal not working second time-Collection of common programming errors"},"content":{"rendered":"<p>I am developing one application using codeigniter. In this application got a problem that modal window is not opening second time.<\/p>\n<p>In detail .<\/p>\n<p>I have form(view) which contains two select box and search button. User will select the options then click on search button it will display a paginated result . I am using ajax to get the result. The pagination is also based on ajax. On this table result user can edit or update any of the records. Here comes the issue. I am displaying the update form inside a modal window. Inside that modal window I have to do some jquery validations. For that I am including jquery library. The moment when I hit on the edit button for the first time, the modal window is showing and second time it is throwing an error<\/p>\n<pre><code>Uncaught TypeError: Object [object Object] has no method 'modal' \n<\/code><\/pre>\n<p>If I removed the jquery library from the modal window then it is working fine.<\/p>\n<p>The code which I am using on this is<\/p>\n<p>My first view<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-15 09:07:37. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am developing one application using codeigniter. In this application got a problem that modal window is not opening second time. In detail . I have form(view) which contains two select box and search button. User will select the options then click on search button it will display a paginated result . I am using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1381\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}