Hi Eliel,
Do you mean only when page is created or on the go - so when user selects checkbox.
Well, in both case it's possible and not hard to do it.
Open plugins/vmcustom/easycheckbox/easycheckbox.php
If you want to add class by default - so when page is created, find
If you want replace classes on the go, you need to do it with javascript. Find
Maja
Do you mean only when page is created or on the go - so when user selects checkbox.
Well, in both case it's possible and not hard to do it.
Open plugins/vmcustom/easycheckbox/easycheckbox.php
If you want to add class by default - so when page is created, find
<input style="float: left; margin-right:5px;"and add class=SOMECLASS". It's three times in the code.
If you want replace classes on the go, you need to do it with javascript. Find
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,
Maja
I have a question, is it possible and easy to add a class to the selected input field?
Thanks.