[jQuery] Re: Checking value

2009-07-08 Thread brightdad...@googlemail.com
Yes it worked! On Jul 8, 10:09 am, "brightdad...@googlemail.com" wrote: > Hi Experts, > > I am trying to conditionally test what the value of href is equal to. > > like this; > > if($(this).find('a').attr("href")=="map.html"){ >  a

[jQuery] Checking value

2009-07-08 Thread brightdad...@googlemail.com
Hi Experts, I am trying to conditionally test what the value of href is equal to. like this; if($(this).find('a').attr("href")=="map.html"){ alert("yes"); } This doesn't work. Do anyone knows what i am doing wrong. Psuedocode please.

[jQuery] Re: findValue

2009-03-19 Thread brightdad...@googlemail.com
Thanks for the suggestion Lauri. I have tried as asuggested and still dont see anything happening.

[jQuery] Re: findValue

2009-03-19 Thread brightdad...@googlemail.com
I have tried this too and doesn't seem to work: $("#operator").autocomplete("auto.php", { delay:10, lineSeparator: "^", cacheLength: 10, matchSubset:1, matchContains:1, onFindValue:function(){ alert("am here"); var a

[jQuery] Re: Select Issue

2009-03-12 Thread brightdad...@googlemail.com
I have added for each loop to supplement the return result from the php and it did the trick. On Mar 12, 1:23 pm, "brightdad...@googlemail.com" wrote: > I have gone through the autocomplete documentation and therefore > changed the code to look like this; > >            

[jQuery] Re: Select Issue

2009-03-12 Thread brightdad...@googlemail.com
I have gone through the autocomplete documentation and therefore changed the code to look like this; function selectItem(li) { findValue(li); } function findValue(li) { if( li == null ) return alert("No match!");

[jQuery] filter(fn)

2009-03-10 Thread brightdad...@googlemail.com
Hi Experts, I am trying to do something like this; $("form#submit").submit(function(){ var name = $('#name').attr('value'); var $out = $("#message"); //Send the request $.ajax({ type: "POST", url: "post.php", data: "oname