convert to a string in jquery code example
Example 1: jquery cast to string
value.toString()
String(value)
value + ""
Example 2: convert jquery to string
var $elem = $('<a href="#">Some element</a>');
console.log("HTML is: " + $elem.get(0).outerHTML);