Consider two strings:
name = "Hello"
mess = "Whats up"
Now to a tooltip class, I m trying to add an attr
tag as follows:
$(this.el).find('.checkcalls').attr('title', "#{name}<br/>#{mess}")
This prints:
"Hello<br/>Whats up"
I do not want to print the break tag, rather execute it.
I've tried:
$(this.el).find('.checkcalls').attr('title', '#{name}<br/>#{mess}')
and:
$(this.el).find('.checkcalls').attr('title', '"#{name}"<br/>"#{mess}"')
They don't print the desired result.
How can I achieve this?
tag when adding attribute ? – Rakhi Prajapati Dec 12 '18 at 07:15