I'm very new to jQuery and its uses, but I'm trying to do something simple...I have a hidden input that contains a list of strings and I'm trying to put it into an AngularJS controller.
here's my input
<input type="hidden" id="states" value="{!states}" />
and code from my controller
$scope.states = jQuery('#states').val();
yet when I try something like alert($scope.states[0])
the alert box only contains "[", as if the first element in the states array is [, second element is A, third element is L, etc.
am I doing something wrong?