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.php

Now 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??

  

Reply via email to