Javascript
From LemonWiki共筆
Revision as of 05:53, 12 February 2013 by
Planetoid
(
talk
|
contribs
)
(
diff
)
← Older revision
|
Latest revision
(
diff
) |
Newer revision →
(
diff
)
Jump to navigation
Jump to search
Javascript approaches to do the same task
get the document by id
document.getElementById('abcId')
alternative: (1) Get the id attribute by using jQuery attr(): $("selector").attr("id");
[1]
(
example
) and (2) go to the first step
parallel naming rules for html elemnt tags ex: <input id='checkbox_id1' > & <select id="select_id1">
HTML select form Attribute
javascript - How to create HTML select option from JSON hash? - Stack Overflow
references
↑
.attr() | jQuery API Documentation
Categories
:
Programming
Web Dev
Javascript
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
Cite this page