Javascript: Difference between revisions

Jump to navigation Jump to search
621 bytes added ,  16 February 2013
no edit summary
mNo edit summary
No edit summary
Line 9: Line 9:
* [http://stackoverflow.com/questions/9071525/how-to-create-html-select-option-from-json-hash javascript - How to create HTML select option from JSON hash? - Stack Overflow]
* [http://stackoverflow.com/questions/9071525/how-to-create-html-select-option-from-json-hash javascript - How to create HTML select option from JSON hash? - Stack Overflow]
* [http://stackoverflow.com/questions/9895082/javascript-populate-drop-down-list-with-array JavaScript - populate drop down list with array - Stack Overflow]
* [http://stackoverflow.com/questions/9895082/javascript-populate-drop-down-list-with-array JavaScript - populate drop down list with array - Stack Overflow]
display or hide the element by id
* [http://www.w3schools.com/jsref/dom_obj_style.asp HTML DOM Style object]
** <nowiki>document.getElementById( selector_id ).style.display = "none";</nowiki>
* Using jQuery [http://api.jquery.com/show/ .show()] or [http://api.jquery.com/hide/ .hide()]:
** <nowiki>$("#selector_id").show();</nowiki> or
** <nowiki>$("#selector_id").hide();</nowiki>
* Using jQuery [http://api.jquery.com/css/ .css()]:
** <nowiki>$("#selector_id").css("display", "");</nowiki> or <nowiki>$("#selector_id").css("display", "block");</nowiki>
** <nowiki>$("#selector_id").css("display", "none");</nowiki>


== references ==
== references ==

Navigation menu