convert data type to integer in jquery. Some times need to convert type into integer for doing different kinds of numerical operations.
syntax: parseInt(value);
Eg : var smarterthanyou = parseInt($(“#yourname”).val());
convert data type to integer in jquery. Some times need to convert type into integer for doing different kinds of numerical operations.
syntax: parseInt(value);
Eg : var smarterthanyou = parseInt($(“#yourname”).val());