http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F 123gotoandplay wrote: hi, have simple search form which works in list.phpNow i am 'loading' list.php in #content and now the search function doesn't work. what i have done - change the type from submit to button - in index.php i added $("#content #search_button").click(function() { alert("click"); var search_word = $("#searchTerm").val(); var dataString = 'search_word='+ search_word; if(search_word=='') { alert("no searchterm"); return false; } else { alert("search"); } }); But the search_button isn't triggered??? How do i fix this?? |
- [jQuery] Problem with a search form in a loaded php file?? 123gotoandplay
- Re: [jQuery] Problem with a search form in a loaded p... Leonardo Balter
- [jQuery] Re: Problem with a search form in a loaded p... Scott Sauyet
- Re: [jQuery] Problem with a search form in a loaded p... Charlie
- [jQuery] Re: Problem with a search form in a load... 123gotoandplay
- [jQuery] Re: Problem with a search form in a ... 123gotoandplay
- [jQuery] Re: Problem with a search form i... Scott Sauyet