I am creating html element ids by escaping text phrases, as follows:
var elementid=escape('some term entered by user');
As a result, I have a span with an id as follows:
<span class="radio" id="selectTimescalesOne%20hello%20there" style="background-position: 0px 0px; "></span>
If I attempt this:
$('#selectTimescalesOne%20hello%20there').html('some new stuff');
Then the span does not get updated. Is there something wrong with using escaped strings as id
s?