Jump to content

[SOLVED] Probably a JQuery Question


chordsoflife

Recommended Posts

you don't need jQuery for this; it is very simple - see below.....

 

<script type="text/javascript">
function madEasyTxtChange(whichOne,sayWhat)
{
document.getElementById(whichOne).innerHTML = sayWhat;
}
</script>

<div style="width:auto;height:150px" onmouseover="madEasyTxtChange('heading2','New Header Content')">
<h2 id="heading2">Base Header Content</h2>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.