lundi 9 février 2015

JQuery: do something with double condition [duplicate]


This question already has an answer here:




I'm not a jQuery coder, i have to do something if the first select is "January" and the second one is "1", i have tried with this...



$('.selectDay option').click(function(){
if (!$('.selectMonth option').val()=='January' && !$('.selectDay option').val()=='1') {
//doSomething
}


Can you help me, please?


Aucun commentaire:

Enregistrer un commentaire