I don't know jQuery at all, but from this description at their API site:
"The .prepend() method inserts the specified content as the first
child of each element in the jQuery collection..."
I would do this:
$$('p.foo').invoke('insert',{top:'your inserted content here'});
If you were inserting into only one element, you would do this:
$('itemId').insert({top:'your inserted content here'});
Walter
On Jun 8, 2010, at 6:17 PM, Craig Gardner wrote:
I'm coming from a jQuery background, so bear with me. Is there a
chart that will show me any methods that are similar in jQuery? More
specifically, I'm looking for a similar method to the
jQuery's .prepend()
Thanks,
Craig Gardner
--
You received this message because you are subscribed to the Google
Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Prototype
& script.aculo.us" 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/prototype-scriptaculous?hl=en.