Hi guys,
I have a question, is it possible and easy to add a class to the selected input field?
Thanks.
I have a question, is it possible and easy to add a class to the selected input field?
Thanks.
<input style="float: left; margin-right:5px;"and add class=SOMECLASS". It's three times in the code.
function setCheckboxJavascript () {and after
Virtuemart.setproducttype(form, id);add this:
jQuery(checkbox).parents(".product-field-display").find("input:checkbox").each(function() { if (jQuery(this).prop("checked") == true) jQuery(this).attr("class", "checked"); else jQuery(this).attr("class", ""); });Best Regards,
$checked = 'checked';and replace it with
$checked = 'checked class="checked"';