There are few DIVs in my HTML who have ids in the form of randomString+ '_N'
eg
[html]<div id="fhgse_N" class="hq"></div>
<div id="dgf5g_N" class="hq"></div>
<div id="ns65h_N" class="hq"></div>[/html]
I need to provide innerHTML to them by splitting the response text string from AJAX.
Since I don't know what the random strings (prefixed to the IDs) would be, but I know that the suffix is _N, the class name is hq and tag name is div.
How can I set innerHTML of these DIVs?
Wildcard could help in that.
eg
[html]<div id="fhgse_N" class="hq"></div>
<div id="dgf5g_N" class="hq"></div>
<div id="ns65h_N" class="hq"></div>[/html]
I need to provide innerHTML to them by splitting the response text string from AJAX.
Since I don't know what the random strings (prefixed to the IDs) would be, but I know that the suffix is _N, the class name is hq and tag name is div.
How can I set innerHTML of these DIVs?
Wildcard could help in that.
Comment