How to load a page using a variable in jQuery

I am using jquery function .load:

$('div#content').load($lin '.entry-content');

How can I call a variable inside brackets?

+3
source share
1 answer

Add a plus sign:

$('div#content').load($lin + '.entry-content');
+7
source

Source: https://habr.com/ru/post/1741476/


All Articles