M
Matthew
Hello! What is the best NS/IE compliant way to accomplish this using
the least amount of javascript code?
<div id="block1">
Group 1 Code
</div>
<div id="block2">
Group 2 Code
</div>
<a id="buttonone" href="javascript:somecode()">Button One</a>
<a id="buttontwo" href="javascript:somecode()">Button Two</a>
Ok, I know those <div> tags may not be formed correctly, but what I
want is for 'Group 1 Code' to run by default, and then the user can
click either button to execute the corresponding <div> tag.
the least amount of javascript code?
<div id="block1">
Group 1 Code
</div>
<div id="block2">
Group 2 Code
</div>
<a id="buttonone" href="javascript:somecode()">Button One</a>
<a id="buttontwo" href="javascript:somecode()">Button Two</a>
Ok, I know those <div> tags may not be formed correctly, but what I
want is for 'Group 1 Code' to run by default, and then the user can
click either button to execute the corresponding <div> tag.