I have a jQuery variable like this:
var variable = $j(this).val();
Where $j(this) is the “numeric” value of a select option.
What I want to do is loop through the variable value i.e do something once,twice etc, based on the value of the variable. A bit like this:
$j.each(variable, function() {
do something
});
But it does not do it, which bit is wrong?
Thanks in advance
Assuming
variableis something like5.