Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Make A Dropdown Option List (HTML)
#21
Sure thing everyone. Enjoy.
Reply
#22
If you want this to validate and use modern standards...

Code:
<select name="Name O' Option Here">
<option value="Option 1">lol</option>
<option value="Option 1">lol</option>
<option value="Option 3" selected="selected">lol</option>
<option value="Option 4">lol</option>
</select>

People haven't used capital tags for years, you should close your option tags, and selected should be a proper attribute rather than just saying selected (either will work but the full attribute is better).
MyBB Support Team Lead
Reply
#23
Nice, short and straight to the point. Like the example Smile.
-Poppins
WhiteHat Hacker, Infection Control and HJT Team Trainee
Poppins™
Originally from: Hackforums.net
Reply
#24
(04-13-2010, 02:23 AM)MattR Wrote: If you want this to validate and use modern standards...

Code:
<select name="Name O' Option Here">
<option value="Option 1">lol</option>
<option value="Option 1">lol</option>
<option value="Option 3" selected="selected">lol</option>
<option value="Option 4">lol</option>
</select>

People haven't used capital tags for years, you should close your option tags, and selected should be a proper attribute rather than just saying selected (either will work but the full attribute is better).

Im not going to deep into HTML, but you can feel free to.
Reply
#25
Simple but with a lot of extra addons it's effective.
Reply
#26
(06-20-2010, 10:18 AM)Kaleb Wrote: Im not going to deep into HTML, but you can feel free to.

That's not deep, that's the standard. Your code wouldn't validate. Learning HTML like in the first post is not a good idea for new web developers.
MyBB Support Team Lead
Reply
#27
Thanks! I wonder how to add this to report.php in mybb..
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Contact form for HTML Crystal 36 10,823 05-24-2013, 05:51 PM
Last Post: Akai
  Upgrade Option Rуan 5 1,085 01-12-2012, 06:14 PM
Last Post: Rуan
  Helping with HTML and CSS Ambitious 0 684 08-28-2011, 01:18 PM
Last Post: Ambitious
  How To Make A Password Field (HTML) Kaleb 42 11,938 07-04-2011, 09:47 AM
Last Post: Link
  [TUT]Learn to edit and make pics in HTML. SVG coding language. Easy to learn! [TUT] Qua 2 1,441 06-24-2011, 09:42 PM
Last Post: Qua

Forum Jump:


Users browsing this thread: 1 Guest(s)