Is it possible to get the serialized list of items from a UL in jquery by calling the serialize method directly instead of using a callback? The code snippet:
va
I was able to get this function working using the split. If you have multiple underscores in your class you may need to adjust the index
function serializeList(container)
{
var str = ''
var n = 0
var els = container.find('tr')
for (var i = 0; i < els.length; ++i) {
var el = els[i]
var p = el.id.lastIndexOf('_')
**var getIdNumber = el.id.split("_");**
if (p != -1) {
if (str != '') str = str + '&'
str = str + el.id.substring(0, p) + '[]=' + **getIdNumber[1]**
++n
}
}
return str
}