Jquery cant get dynamic data

Posted by Napoleon Wai Lun Wong on Stack Overflow See other posts from Stack Overflow or by Napoleon Wai Lun Wong
Published on 2013-10-21T09:47:30Z Indexed on 2013/10/21 9:54 UTC
Read the original article Hit count: 283

Filed under:
|

i am a noob to using the jQuery

i have a problem about the Uncaught SyntaxError: Unexpected token

i am using the 1.9.0 version of jqery i am creating a dynamic number of record, each record would create a "tr" in a table ,also i want to add some dynamic coding into the textbox

part of Html coding : <-tbody><-tr id="row_1"><-input id="1" name="collections[appearance][headersubcolor][entity_id1][name]" value="0" class="Root Catalog input-text" type="text"> Click inside to change a color of each Category

<-tr id="row_2"><-td class="label"><-td class="value"><-input id="2" name="collections[appearance][headersubcolor][entity_id2][name]" value="0" class="Default Category input-text" type="text">....

jQuery coding :

 $('tr[id^="row_"]'.each(function(){
     var rowid = parsInt(this.id.replace("row_",""));
     console.lof("id:"+ rowid);
            var ??? = new jscolor.color(document.getElementById('???'), {})
 });    

$('tr[id^="row_"]'.each(function() <--- i cant getting the DATA

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dynamic-programming