Click here to Skip to main content
15,908,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

I look at phpMyAdmin drop down option (for choose server collation) and I found it can show an option that un-choose-able like this image below..

https://www.dropbox.com/s/pka1kg6wngbqbfm/phpmyadmin.png[^]

can anyone show me a way how to make it??

thank for advance..
Posted

1 solution

Hi Friend,

Here's the answer. Mark it as solved and rate it also :)

HTML
<select>
  <optgroup title="Test1" label="Menu 1">
    <option value="A">A</option>
    <option value="B">B</option>
  </optgroup>
  <optgroup title="Test2" label="Menu 2">
    <option value="1">1</option>
    <option value="2">2</option>
  </optgroup>
</select>


Hope that it is easy explanation. Mark it as solved.

With Regards
Tushar Srivastava
 
Share this answer
 
Comments
Taftazani 22-Dec-13 17:48pm    
Wow so there is a <optgroup> tag in select..never knew it..
Thank you very much for showing me the way Er. Tushar Srivastava...
Er. Tushar Srivastava 23-Dec-13 3:43am    
I am more than happy to help :) Please do mark it as solved if it help you though :P ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900