HTML User Input:
=110*200
jQuery:
$(document).on("change", ".calculator", function(){
var value = $(this).val();
if(value.charAt(0) == '='){
var newval = value.slice(1);
console.log(parseInt(newval));
}
})
Output:
110
Anyone can please tell me How can I perform maths operation by using this programme? Where am I going wrong And Why it not working?