简体   繁体   中英

automatically select an option in a select field based on URL parameter?

http://domainname.com/page/?selectfieldOption=enable

when i use a URL like above(for example), it automatically select the option in the select field(), please see the screenshots attached

URL like this(example)

the URL have the value(parameter) of selected field.then it automatically select to that value

I'm not exactly sure what you want to achieve. Some Code would be helpfull. Here you can find a jQuery function to access URL parameters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM