Monday, September 29, 2008

[jQuery] Re: Metadata parameter as selector

as i m very new to jQuery i can't figure out what exactly ur code does .. but to be simple if u have an tr with id = ''my_tr" the following code sould let u select the tr :

$('#my_tr').css({do some thing})

On Mon, Sep 29, 2008 at 10:53 PM, me-and-jQuery <brilko.brilko@gmail.com> wrote:

I am searching the web and documentation and still can't find a
working solution.

I have a table which rows has also id with metadata, for example <tr
data="{id:4}">

And now I want to select row with id 4. I was trying many ways but no
success for now. For example:

$.metadata.setType("attr", "data")
$("table tr.id:4").metadata().remove();


Anyway, is this possible with metadata at all? Thanks for any help.



--
Amardeep Sarkar

No comments: