You want .val():
http://docs.jquery.com/Attributes/val

In the future, a question like this should be posted to the jQuery mailing
list:
http://groups.google.com/group/jquery-en

--John


On Thu, Mar 19, 2009 at 8:38 AM, pdoddamani <pdoddam...@gmail.com> wrote:

>
>
> 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 jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to