How do I make a word bold in javascript?

Posted by user54197 on Stack Overflow See other posts from Stack Overflow or by user54197
Published on 2010-06-17T12:59:47Z Indexed on 2010/06/17 13:03 UTC
Read the original article Hit count: 161

Filed under:
|

I am using javascript to populate data in a table which return everything fine. I would like to make a string bold. See code below

$tr.find('.data').val($('#txtName').val() + '  <strong>Address:<\/strong> ' + $('#txtAddress').val());

How do I make only the word "Address" bold?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery