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.

Troy III commented: A concize working code demo has been given to you - you need to say "THANK YOU!" and mark your thread as "Solved!" -2

Recommended Answers

All 2 Replies

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;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.