[jQuery] Putting each character of a string into an array

2008-03-04 Thread SyLon
What will be the best to put each character of a string into an array, like so: str = "abcdefg" => arr[0]="a", arr[1]="b", arr[6]="g" and so on. Thanks, Leon.

[jQuery] .click() issue

2007-12-10 Thread SyLon
Hello everyone! Could someone please explain me how could this be?? Works: $(".flag").hide(); Doesn't work (wont alert): $(".flag").click(function (){ alert("hello"); }); WORKS: $(".flag").click(function (){ alert("hello"); }).click(); It seems like the browser just doesn't see the click eve

[jQuery] Re: How do I run a function on my selected items?

2007-12-10 Thread SyLon
You should probably do something like: $(".myClassName") .each(function (){ alert( $(this).attr('id') ); }); Leon. On Dec 10, 7:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Here is my selection: $(".myClassName") > Here is my function: function myFunction { alert( $ > (this).attr('i