this does not mean click both at same time, it is standard method of applying function to more than one selector and applies to *any* selector individually

look at examples

http://docs.jquery.com/Selectors/multiple#selector1selector2selectorN

bharani kumar wrote:
Assume if we give condition like this ,$("#yesBut, #condBut").click(function(){});

Then it assumes like when ever two elements are clicked at same time know ,

So i this one is Error on ,

Even i tried but am not get anything ,

You tried this snippet


On Mon, Jun 15, 2009 at 12:50 PM, Steven Yang <kenshin...@gmail.com> wrote:
maybe try something like this

$("#yesBut, #condBut").click(function(){
   if($("#yesBut").is(":checked") && $("condBut").is(":checked")) {
     $("#SubmitCard").removeAttr("disabled");
  }
  else {
     $("#SubmitCard").attr("disabled", "disabled");
  }
})

i am not too sure of my syntax and stuff, but hopefully you get the idea

and hopefully someone come up with a better solution than mine




--
Regards
B.S.Bharanikumar
http://php-mysql-jquery.blogspot.com/

Reply via email to