Javascript help please!
Javascript help please!
Out of context: Reply #11
- Started
- Last post
- 16 Responses
- neverblink0
you're probably way out of your league if you don't know how to add an id to your script element.. but what the hey, I'm feeling generous..
//-- in your < head >
<script type="text/javascript">
$(document).ready(function() {
$('#test').runcode();
});
</script>//-- in your < body >
<script type="text/javascript" id="test"> alert("hello world"); </script>