KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
am trying to set select/option values using jquery Mobile and can't seem to get it working. <!-- Complete example below. --> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="jquery.mobile/jquery.mobile.css" /> <script type="text/javascript" src="jquery.mobile/jquery.js"></script> <script type="text/javascript" src="jquery.mobile/jquery.mobile.js"></script> </head> <body> <div data-role="page" id="mainmenu"> <div data-role="header" data-position="inline"> <h1>Main Menu</h1> </div> <div class="ui-body ui-body-c"> <div data-role="content"> <div id='placeholderA' ></div> <div id='placeholderB' ></div> <div class="ui-block-b"><button type="submit" id="addPart" data-theme="a" data-icon="plus">Add Serial/Part</button></div> </div> </body> </html> <script> var currentTab = "A"; // An XML fragment testXML = "<?xml version='1.0' encoding='UTF-8' ?>\ <Doc>\ <DtlFields>\ <ACTC>B</ACTC>\ <QTY>5</QTY>\ </DtlFields>\ <DtlFields>\ <ACTC>A</ACTC>\ <QTY>6</QTY>\ </DtlFields>\ </Doc>"; // An HTML fragment section = "<ul data-role='listview' data-theme='a'>\ <li>PART: <span class='thisSection'></span>\ <div data-role='fieldcontain'>\ <label>A Label</label>\ <select name='ACTC' id='preAction' data-theme='a'>\ <option value='A'>A</option>\ <option value='B'>B</option>\ <option value='C'>C</option>\
Tags (comma-separated)
Save Edits
Cancel