I have a DIV tag as such
<div id='idval'></div>
in jquery I have the following
var data1 = '<b>' + Text for file + '</b>'
how do I use the .data to assign the content of data1 so it appears in the div tab
final result would be something like:
<div id='idval'>
<b>Text for file </b>
</div>
You don’t use
data, you use.html().May be worth reading the documentation on
datato see what it is used for.http://api.jquery.com/jQuery.data/