Javascript Logic Problem
<p>I know only what I need but I do not know how to get that done.</p>

<p>This is the logic of the code, I really hope some of you has the solution.</p>

<p>How can I create in javascript or jQuery a function that will do the following?</p>

<pre><code>If that checkbox is selected, when the button is clicked redirect the user to another page by passing the value of the textarea in the URL.
</code></pre>

<p>So that is the logic.</p>

<p>We have three elements.</p>

<p>1)The checkbox</p>

<p>2)The input type button</p>

<p>3) The textarea.</p>

<p>The checkbox is selected, the user clicks on the button and the user goes to another page , and the URL will include the value found in the textarea.</p>

<p>i.e.</p>

<pre><code>http://mydomainname/page.php?ValueThatWasinTextArea=Hello World
</code></pre>

<p>Can you help me.</p>

<p>I think it is something simple for a javascript coder.</p>

<p>Thank you so much</p>
