How to display a specific word in bold using jquery.
function OnSuccess(response) { var user = $('#username').val(); if (response.d == 1) { $('#result').text(user + ' already Exists'); $('#Button1').attr('disabled', true); } else { $('#result').text('Username '+user +' Ok'); $('#Button1').attr('disabled', false); } }
Here I want the username (user) to be bold, the rest of the sentence should be normal. Is this possible with jquery?
source share