Hi
You could try something like the following, which I haven't tested:
var data = [];
$("#mytable td").each(function () {
data.push($(this).html());
}
btw your post is better directed at the jQuery group rather than this
group - jQuery UI
Paul
On Aug 31, 12:08 am, liorlew <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I just started to learn ajax and jquery and I already manged to take a
> html portion of my blog. the problem is that I want to get this part
> of the html as an array so that I will be able to reformat it for
> example.
>
> if my html is:
> <tr>
> <td><table width="100%" border="0" cellpadding="3"
> cellspacing="0" style="border:1px solid #CCCCCC">
> <tr>
> <td width="250" bgcolor="EEEEEE"
> class="style12">name</td>
> <td align="right" class="style12">red paint</td>
> </tr>
> <tr>
> <td bgcolor="EEEEEE" class="style12">price</td>
> <td align="right" class="style12">7.10 $ </td>
> </tr>
> </tr>
> then I need an array:
> name
> red paint
> price
> 7.10$
>
> or
> "name" "red paint"
> "price" "7.10$"
>
> I will appreciate any ideas
>
> Thanks
> L
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" 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-ui?hl=en
-~----------~----~----~----~------~----~------~--~---