I have an input button. I created for this input an attribute called \"multiplicateur\" which has the value of 1. When the button is clicked I have a .click() t
.click()
ajaxData is a string. Thus, you need to parse it to an integer...
ajaxData
string
integer
$('#envoyer').click(function() { const ajaxData = $(this).attr('multiplicateur'); /* parse string to integer */ alert(parseInt(ajaxData) + 1); });