object is not a function in jquery

shadowfx88

New Member
In my jquery, I am getting error\[quote\] \[code\]Uncaught TypeError: object is not a function\[/code\]\[/quote\]Here is the code:\[code\]var localValues = new Array('txtA', 'txtB', 'txtC');for (var intCount = 0; intCount < localValues.length; intCount++) { var control = $('#' + localValues(intCount)); /* ERROR */ validationOfControls(control);} function validationOfControls(control) { // code here}\[/code\]It seems to be silly mistake, but I cant figure it out..Can you please explain what I am doing wrong here?
 
Back
Top