Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Why this function doesn’t work in ‘for loop’ ? [jquery] Re: Why this function doesn’t work in ‘for loop’ ? [jquery]

#127670
pixelgrid
Participant

the num of the inputs is taken from the match function which returns a string, so you dont have 2 for example but ‘2’ . with +’2′ the string ‘2’ becomes the number 2