accessing an associative array
Hi there,
I have a div#month containing the current month ( march, april, june etc )
var arr[ "august" ] = "Augusti";
var str = $('#month').html(); // div#month contains the word "august"
alert( arr[ str ] );
the result is an alert box with "undefined" inside.
thanks for you help