Hi,
I need help in jQuery.
- PARSEINT REQUIRES A RADIX: Please make sure you are supplying a radix for all parseInt().? please help me for this point
Thanks
Nadir Ali
Hi,
I need help in jQuery.
Thanks
Nadir Ali
Hello Coco,
Here is my js code “var unitHeight = parseInt(height) + ‘px’;” how to change into radix parameter?
It should be:
var unitHeight = parseInt(height, 10) + ‘px’;
the before one is already this code “var unitHeight = parseInt(height, 10) + ‘px’;” but envato reviewer said
Search in all your custom JS files for “parseInt” and add “10” if you have missed someone
in custom js file i just found that line
if (parseInt($star_rating.siblings('input.rating-value').val()) >= parseInt($(this).data('rating')))
Try with:
if (parseInt($star_rating.siblings('input.rating-value').val(), 10) >= parseInt($(this).data('rating'), 10))
Thanks man.