jquery - Advanced checkbox inputs - let user choose a single div -
edit: thank replies! forgot mention better if more <input type="radio">
, 1 theme chosen. here have (not though). function when only 1 input checked not work. also, there's missing function should **uncheck radio button when it's checked.
the link: jsfiddle. hope works now. **
i'm creating 3-step form, should have theme chooser. themes display divs.
single div looks such this:
<div class="theme">theme</div>
how the value of clicked div?
url params?
<div class="theme"><a href="?theme=2">theme</a></div>
or possible via form input?
<div class="theme"><input type="checkbox">???</div>
$('.theme').on('click', function () { var value = $(this).html(); // here go alert(value); });
Comments
Post a Comment