Hi
<table cellspacing="0" cellpadding="0" border="0"
id="playlistbuilder">
<tr >
<td> text1</td>
</tr>
<tr>
<td> text2</td>
</tr>
</table>
For above Html I am able to access the td values(text1, text2) by
following way,
$('#playlistbuilder tr td').each(
function(i)
{
obj["entry"+i] = $(this).text();
}
);
Same way I want to access for following values of input elements of id
addtracklist
<ul id="addTracklist">
<input type="text" id="newPl0" readonly="readonly" value="text1" /
>
<input type="text" id="newPl1" readonly="readonly" value="text2" /
>
</ul>
by say like this
$('#addTracklist input:text').each(
function(i)
{
obj["entry"+i] = $(this).value();
}
);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---