-1

hai everybody,

i need help in multiple true if condition

IF (condition 1 is true)
{

$('.cCal').css('border-color','red');
return false;
}
and 
(condition 2 is true)
{
$('.cCal2').css('border-color','red');
return false;
}
(condition 3 is true)
{
$('.cCal3').css('border-color','red');
return false;

}

this syntax working only one condition is true.

more than one condition is true meand excute only first statemnt

i want to more than one true condition execute all the fucntion

plz help me.

Votes + Comments
A concize working code demo has been given to you - you need to say "THANK YOU!" and mark your thread as "Solved!"
3
Contributors
2
Replies
12
Views
4 Years
Discussion Span
Last Post by Troy III
0

this syntax working only one condition is true

function yourfunction(){
   if(condition 1 is true)$('.cCal').css('border-color','red');
   if(condition 2 is true)$('.cCal2').css('border-color','red');
   if(condition 3 is true)$('.cCal3').css('border-color','red');
return false;
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.