0

I would love to make a select box, which has checkboxes inside. Something like this:

<form>
  <select name="cars">
    <option value="volvo"><input type="checkbox" name="volvo">Volvo XC90</option>
    <option value="saab"><input type="checkbox" name="saab">Saab 95</option>
    <option value="mercedes"><input type="checkbox" name="mercedes">Mercedes SLK</option>
    <option value="audi"><input type="checkbox" name="audi">Audi TT</option>
  </select>
  <input type="submit" value="Submit">
</form>

Is this possible? It is not for multiple selection. It means the selected value is independent from the checkboxes.

jaunt
  • 4,900
  • 4
  • 31
  • 52
peace_love
  • 5,799
  • 9
  • 52
  • 132

1 Answers1

0

check below link, it may usefull

www.erichynds.com/examples/jquery-ui-multiselect-widget/demos/

Arun Kumar M
  • 1,627
  • 1
  • 13
  • 26
  • Thank you, yes I found this, but it is for multiple selection. I need the checkbox independent from the selectbox – peace_love Sep 09 '15 at 07:59