Link to home
Start Free TrialLog in
Avatar of arwar49
arwar49

asked on

html address

hopefully this is easy one.

i have a web page that has a combo box as follows:

            </select><select name="ctl00$PSDDL" onchange="javascript:setTimeout('__doPostBack(\'ctl00$PSDDL\',\'\')', 0)" id="ctl00_PSDDL">
                  <option selected="selected" value="american">American</option>
                  <option value="decimal">Decimal</option>
                  <option value="hongkong">Hong Kong</option>
 
            </select>


if the url is http://xyz.com how do i add to the url to force it to display decimal rather than hongkong or american??

something like http://xyz.com?ctl00_PSDDL=decimal
Avatar of cfEngineers
cfEngineers

location.href='http://xyz.com?ctl00_PSDDL='+document.GetElementById('ctl00_PSDDL').options[document.GetElementById('ctl00_PSDDL').selectedIndex].value;
ASKER CERTIFIED SOLUTION
Avatar of arwar49
arwar49

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of arwar49

ASKER

i solved it myself