i have a small problem with javascript and php...
Posted: Sat May 26, 2012 4:00 am
i have an echo that have this code:
echo' <a href="#" id="adher">Click Here</a> ';
now in java script i need to change the "Click here" in another text....how can i ?
i tryed this...
<script type="text/javascript">
function showStuff(id) {
document.getElementById('adher').innerHTML ="<span style='color:green; font-weight:normal;'>The New Text</span>";
}
</script>
in html page its work
but in
php
its not !
echo' <a href="#" id="adher">Click Here</a> ';
now in java script i need to change the "Click here" in another text....how can i ?
i tryed this...
<script type="text/javascript">
function showStuff(id) {
document.getElementById('adher').innerHTML ="<span style='color:green; font-weight:normal;'>The New Text</span>";
}
</script>
in html page its work
but in
php
its not !