I need one help.i need to restrict some css display property with PHP condition.I am explaining my code below.
<div style="width:24%; float:left; padding:10px;display:none;" id="compid">Select Company :
</div>
Here initially my div's css property display:none
is there.But i need to block
this using some php condition like below.
<?php if($getcustomerobj->companypro == 1 and $_REQUEST['edit']!=""){display:block}else{display:none} ?>
I need to put the above condition inside the style properties.Please help me how to do it proper way.