this is a very simple question, I have never gotten jquery selectors to work on jsfiddle and I still dont know why. I don't think there's anything wrong with my code, but its not outputting what its supposed to in my firebug console. Not even a simple id selector.

This is my [**Jsfiddle**](http://jsfiddle.net/darnold24/kbc7tma8/10/)

```
<p id = "hi"> inner </p>
var h = $('#hi');
console.log(h);
output is [p#hi]

```

My main objective is to get this array to output:

```
var allDates = $("[data-test='date']"); 
allDates.each(function(item,index){ //each is javascript function
 item[index] = new Date($(this).text());

```