70
rated 0 times
[
75]
[
5]
/ answers: 1 / hits: 28551
/ 12 Years ago, sun, may 20, 2012, 12:00:00
I need to use JavaScript to get the username which is posted in the following way:
<div id=project_user>
<p class=project_user>
by <span class=project_username><?php echo $OwnerName; ?></span>
</p>
</div>
How do I do it?
I tried the following but it didn't work:
document.getElementById('project_username').innerHTML
More From » getelementbyid