I have jQuery code where i am trying to put a class values in a variable & then trying to use that variable value in if else condition & comparing with static value 'FCL' But that's not working.class name is 'kuuj' & this class value can be (LCL,FCL,BULK,AIR) Only.
var xxssees = $('.kuuj').val();
if(xxssees == "FCL")
{
$('#sonal').html(xxssees);
}
else
{
$('#sonal').html('hello');
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<strong>Solution : </strong><label id="sonal" style="color:Green"></label><br />