Maybe it is just a simple mistake but this thing is driving me crazy. I want to know why the hell this jQuery line is returning -1?
$('td[class!="traco"]:last').index('td.diaNormal')
First of all, when this function returns a negative number? Why does it happen? Thank you all in advance, Fernando.
EDIT:
The most intersting thing is that my page has the element i am looking for, and the jQuery index just returns -1.
EDIT2: This is my HTML, http://jsfiddle.net/bv7SU/