Populate Dropdown From Xml With"text" & "value"
I have created a dropdown menu that pulls from an xml file. However, I would like the 'value' of each option in the xml to also be visible in the dropdown option. So with the below
Solution 1:
All you should have to do is update your text line to the following:
text: $(this).text()+ " " + $(this).attr('value'),
Have you tried that?
Post a Comment for "Populate Dropdown From Xml With"text" & "value""