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,978
  • 4
  • 33
  • 54
peace_love
  • 6,229
  • 11
  • 69
  • 157

1 Answers1

0

check below link, it may usefull

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

Arun Kumar M
  • 1,633
  • 1
  • 15
  • 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