I want to display the following text for the tag <span>. How to avoid single quotes for the following?
$("#spn_err").text($('#txt1').attr('value')+" is not valid");
I want to display the message as' ZZZ' is not valid. Here $('#txt1').attr('value')is the dynamic meaning. It can be abc, bcc, ddd, zzz. How can i do this?
source
share