• Resolved fatih71

    (@fatih71)


    Hello,
    How to insert button when clicked quantity in number field increases with +1 and the other button is a minus button when clicked quantity in number field decreases with -1.

    Kind regards,
    Fatih

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @fatih71,

    Assuming the number field is the fieldname1, the code to enter as the onclick events of the buttons for increasing and decreasing in one this field, can be:

    
    var f = jQuery('[id*="fieldname1_"]');f.val(f.val()+1);f.change();
    

    and

    
    var f = jQuery('[id*="fieldname1_"]');f.val(f.val()-1);f.change();
    

    Respectively.
    Best regards.

    Thread Starter fatih71

    (@fatih71)

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘calculated form fields: plus/ minus button’ is closed to new replies.