django - Getting data from select elements without post -


i have section of html given me 3 <select> elements corresponding cities, universities , skills populated back-end.

<form action="" method="post">                             <div class="language-main1">                                 <div class="language1">                                     <select>                                         <option>by university</option>                                         {% uni in universities %}                                         <option>{{uni}}</option>                                         {% endfor %}                                     </select>                                 </div>                             </div>                             <div class="language-main1">                                 <div class="language1">                                     <select>                                         <option>by skill</option>                                         {% skill in skills %}                                         <option>{{skill}}</option>                                         {% endfor %}                                     </select>                                 </div>                             </div>                             <div class="language-main1">                                 <div class="language1">                                     <select>                                         <option>by place</option>                                         {% city in cities %}                                         <option>{{city}}</option>                                         {% endfor %}                                     </select>                                 </div>                             </div>                             <div class="clear"><p>clear filters</p></div> <input type="submit" value="search">                         </form> 

how can have when post request sent can find values of 3 <select> elements?

i have feeling answer create form i've looked , seems quite undertaking. hoping there easy way past that.

sounds @ end of day, name attribute missing form.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -