I know there is some topics similiar to this one. But those didnt hel me. I have html like this:
<span class="wpcf7-list-item first">
<label>
<input type="checkbox" name="checkbox-143[]" value="customer service">
<span class="wpcf7-list-item-label">medicine</span>
</label>
</span>
For now I have jquery like this:
$(document).ready(function(){
if ($("input").val() == "customer service") {
$(this).addClass("cust-serv");
}
});
What I whand to do is add Class to input when it has specivic value. In this example this value is "customer service" and I want to add class "cust-serv".
Can You help me with that? Thx!
$(this)$(this)is not what you think it is ...