jQuery takes a different approach to $H, like so:

// No need to wrap your object, or array:
var a = {
       a1: ["1", "2"],
       a2: ["3", "4"],
};

// Iterate through your object or array
jQuery.each(a, function(n) {
       var v = a[n].value;
 });

// this also works:
jQuery.each(a, function() {
       var v = this;
 });

Hope this helps!

--John

On 9/10/06, Will Arp <[EMAIL PROTECTED]> wrote:
> Does jquery have something like $H() ?
> I'm trying to convert a prototype based script
>
> var a = $H({
>         a1: ["1", "2"],
>         a2: ["3", "4"],
> });
>
> and
>
> a.each(function(n) {
>         var v = $H(n).value;
>   });
>
> how would I do this in jQuery?

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to