+ 1
How to get text from var inside .text method?
var sometext = 'Hello world'; var span = $('.article>h2') //h2 inside classname="article" $(span).text('property of sometext var');
1 Antwort
var sometext = 'Hello world'; var span = $('.article>h2') //h2 inside classname="article" $(span).text('property of sometext var');