default select option as blank

Maybe this will be helpful — select an option — Will be displayed by default. But if you choose an option, you will not be able to select it back. You can also hide it using by adding an empty option <option style=”display:none”> so it won’t show up in the list anymore. Option 2 If you don’t … Read more

xajax expanding list query

I think you should look into jQuery as your default javascript library, it’s used by many web professionals and is very good. There you will find the Accordion control, which I think will suite this need very well. Good luck!

Which is better: or

Do you need a type attribute at all? If you’re using HTML5, no. Otherwise, yes. HTML 4.01 and XHTML 1.0 specifies the type attribute as required while HTML5 has it as optional, defaulting to text/javascript. HTML5 is now widely implemented, so if you use the HTML5 doctype, <script>…</script> is valid and a good choice. As to what should go in … Read more