i have javascript jquery that looks like this:
var userInput = prompt("Liquid Handler #:", "Liquid Handler #:");
$(this).next('a').text('Liquid Handler #:' + userInput);
i would like to know how i can include html into the text something like this:
var userInput = prompt("Liquid Handler #:", "Liquid Handler #:");
$(this).next('a').text('Liquid Handler #:' + '<b>' + userInput + </b>);
how do i inject html into the javascript?
text()tohtml()?</b>isn't wrapped in single quotes...