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.
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
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
3 matches
Mail list logo