1. after the drop-down list is selected, no corresponding parameters are available in the address bar. The data can be queried, but the drop-down list cannot be changed to the selected html: & amp; lt; divclass & quot; span3 & quot; & amp; gt; {code ...} js: functiondissearch () {code ...} post the error message and paste the relevant information...
1. After the drop-down list is selected, no corresponding parameters in the address bar can be found, but the drop-down list cannot be changed to the selected item.
Html:
Brand: Select brand >
Js: function dissearch (){
var url = "/console/distribute/distribute/index/";var agt = "?";if($("#disbrand").val()!=""){ url+=agt+"brand_id="+$("#disbrand").val(); agt = "&";}
Post error message
Labeling
Methods that have been tried are still not resolved (attached with the relevant link)
Reply content:
1. After the drop-down list is selected, no corresponding parameters in the address bar can be found, but the drop-down list cannot be changed to the selected item.
Html:
Brand: Select brand >
Js: function dissearch (){
var url = "/console/distribute/distribute/index/";var agt = "?";if($("#disbrand").val()!=""){ url+=agt+"brand_id="+$("#disbrand").val(); agt = "&";}
Post error message
Labeling
Methods that have been tried are still not resolved (attached with the relevant link)
I just don't know if your $ args ['brand _ id'] already exists. You should first var_dump it to see if it doesn't work. If it doesn't work, change the SELECTED to selected = "selected"