Jquery cant get dynamic data
- by Napoleon Wai Lun Wong
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