javascript - get values from query string for input box and drop down menu -
hi have following page query string: http://userpages.umbc.edu/~andrade1/querystring/querystring/example1%20-%20copy.html
when click show , go receiving page here: http://userpages.umbc.edu/~andrade1/querystring/querystring/example123.html?name=duck%2c%20donald&spouse=daisy
how can retrieve query string drop down menu display name donald duck or mickey depending button clicked , input box display either minnie or daisy depending button clicked?
for example when show button mickey mouse clicked want mickey mouse display in drop down menu still able select other options after page loaded , minnie display in input box able type in value.
currently javascript using is:
<script type="text/javascript"> <!-- document.write("name: " + request.querystring("spouse")); // --> </script> which not work drop down menu or input box
use location.search
Comments
Post a Comment