First of all: an Id is meant to be unique, so you can start with
$('#search_button') selector and test it all again.



2009/12/23 123gotoandplay <wesweatyous...@gmail.com>

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



-- 
At,
Leo Balter
http://leobalter.net
Blog técnico: http://blog.leobalter.net

Reply via email to