Jump to content

Disable optgroup


rashmi_k28

Recommended Posts

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>";

Link to comment
https://forums.phpfreaks.com/topic/105728-disable-optgroup/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.