Change color depending on value
<p>I don't why this is not working. Can somebody tell me what is the problem with this?</p>

<pre><code>var x = $('#clicked_info').val();

if(x == 1) {

    $('#companyname_ph').css({'color':'yellow'});

}

else if(x == 2) {

    $('#companyname_ph').css({'color':'red'});

}
</code></pre>
