jaquery to string code example
Example 1: tostring js
var num = 15;
var n = num.toString(); /* now */ "15"
Example 2: convert jquery to string
var $elem = $('<a href="#">Some element</a>');
console.log("HTML is: " + $elem.get(0).outerHTML);
var num = 15;
var n = num.toString(); /* now */ "15"
var $elem = $('<a href="#">Some element</a>');
console.log("HTML is: " + $elem.get(0).outerHTML);