[Solved] get value of an item using jquery

[ad_1]

var text = $.trim($('#divInTimeStamp-5-2')[0].firstChild.nodeValue);

Demo

  • [0] gets a reference to the DOM element #divInTimeStamp-5-2. It is a shorthand for .get(0).
  • .firstChild gets its first child text node.
  • .nodeValue contains the text node’s content.
  • $.trim for cross-browser white space trimming.

[ad_2]

solved get value of an item using jquery