Re: [jQuery] how can i do this selection in jquery
this tutorial on event delegation should help
http://www.learningjquery.com/2008/03/working-with-events-part-1
if you follow tutorial you'll likely end up with some statement like:
if($tgt.is("#search_form")){
// do nothing
}else{
// do something
}
daft01 wrote:
i want to select the div with id headerimg, so this is: Code: jQuery("div#headerimg").click(function () { document.location="http://google.com/"; }); but at the same time i want to omit a table with id=search_form from the selection. thanks
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home