137
rated 0 times
[
140]
[
3]
/ answers: 1 / hits: 21454
/ 12 Years ago, tue, may 1, 2012, 12:00:00
As a case study, I am trying to get to grips with this code snippet that uses the parseInt()
function, and have a couple questions:
var maxChars = parseInt( formField.attr('maxlength') ? formField.attr('maxlength') : counter.text() );
Why is
formField.attr('maxlength')
there twice?
How does a Radix parameter work in this example?
More From » parseint