I got an input field <input class="class" min="0" max="9999" step="1" onchange="$(document).trigger('add.Cart',[332,$(this).val()]);" id="kos-332" value="0" type="number"> and i am wreking my brain how to create my if statement which would automaticly increase the value to 1, something like :
@if (condition) {('add.Cart',[332,$(this).val()]); value="1"}
Aucun commentaire:
Enregistrer un commentaire