var text = $.trim($('#divInTimeStamp-5-2')[0].firstChild.nodeValue);
- [0]gets a reference to the DOM element- #divInTimeStamp-5-2. It is a shorthand for- .get(0).
- .firstChildgets its first child text node.
- .nodeValuecontains the text node’s content.
- $.trimfor cross-browser white space trimming.
solved get value of an item using jquery