How to insert a value into javascript code if it is already taken? In short, there is a variable
id=107; And then the code goes like this (sampling of all paragraphs by id ):
$('p[id=id]').text('New value'); I tried changing the id to another variable, but nothing happened. So how is it right to embed values in JavaScript ?