rashmi_k28 Posted May 15, 2008 Share Posted May 15, 2008 Hi, How to disable the items under optgroup. Here disabled=disaled doesnot work echo "<optgroup label=\"Disabled Names\" name=disabledcluster>"; $down=disabled($pstatus); foreach($down as $d){ echo "<option value=\"\" disabled=\"disabled\" style=\"color:#FF0000;\"><font color=\"#FF0000\">$d</font></option>"; } echo "</optgroup>"; Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted May 15, 2008 Share Posted May 15, 2008 youre probably using ie for this. options cant be disabled in ie but can be in firefox . i would simply just not display them. whats the use of an option if you cant use it anyway. and where is the part about javascript its just php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.