Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[VB] How to modify an element's child attribute (Correct Terminology?)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Markshall" data-source="post: 294672" data-attributes="member: 1872"><p><span style="font-family: 'Courier New'">ddlSims</span> is the ID/name of the select box, select boxes do not have the value attribute, instead they have the <span style="font-family: 'Courier New'">option</span>s, so you will somehow have to traverse through them and when you reach the 2nd <span style="font-family: 'Courier New'">option</span>, do something like</p><p></p><p>[code]...SetAttribute("selected", "selected")[/code]</p></blockquote><p></p>
[QUOTE="Markshall, post: 294672, member: 1872"] [FONT=Courier New]ddlSims[/FONT] is the ID/name of the select box, select boxes do not have the value attribute, instead they have the [FONT=Courier New]option[/FONT]s, so you will somehow have to traverse through them and when you reach the 2nd [FONT=Courier New]option[/FONT], do something like [code]...SetAttribute("selected", "selected")[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[VB] How to modify an element's child attribute (Correct Terminology?)
Top