+ 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');

8th Feb 2019, 6:46 AM
Bakhrom Akbarov
Bakhrom Akbarov - avatar
1 Respuesta