This is an input box in whose value I have inserted a text which is working fine
$("#inputbox").val(insert_text);
Now, what I want further is to insert <html>
tags inside .val()
, such as
$("#inputbox").val("<mark>"+insert_text+"</mark>");
so that it appears in the value of inputbox
I want the value text to highlight, I tried to implement it the above way but it didn't work.
Please help me through it.