Use alternative content if javascript disabled

Use alternative content if javascript disabled

Hi all,
I'm not sure if this is the right place to ask this but I'm wondering if there's a jQuery way around my problem.
I have a form that uses jQuery to submit the data.
If javascript is disabled, my form doesn't work so I want to replace the form with a button that takes the user to another page containing a standard HTML form.
 
Here's the code I have:
[code]
<script type="text/javascript">
<div id="myDiv">
Javascript dependent form here
</div>
</script>
<noscript>
<div id="myAltDiv">
Alternate button here
</div>
</noscript>
[/code]
 
This all works fine and actually does the job for me but IE8 gives me a syntax error and FireFox tells me 'XML cannot be the whole program'
 
I'm guessing this is because there is just HTML between the script tags rather than javascript.
 
Is there any way I can stop these errors?
I was wondering about jQuery .text() function or javascript document.write but I'm not very experienced on either!