form with two radio buttons using jquery dialogbox
<p>Hi I need to create a form with two radio buttons yes and no with submit button, if user doesn't select any option an alert should popup saying 'Please choose one option', if yes and submit button a jquery dialogbox should popup with two buttons in the dialogbox ok and cancel--> if user clicks ok then it should go to different page, if no radio button and submit button then also a dialogbox should popup with the same ok and cancel buttons, if ok then it should go to another page. I have created something like this but not able to give the selected radio button</p>

<pre><code>&lt;form action="" method="get" name="radval"&gt;
&lt;table width="100"&gt;
&lt;tr&gt;
&lt;td width="41"&gt;&lt;input name="xyz" type="radio" id="yes_chk" value="" required&gt;
  Yes&lt;/td&gt;
&lt;td width="47"&gt;&lt;input name="xyz" type="radio" id="yes_chk" value="" required&gt;
  No&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
 &lt;td colspan="4"&gt;&lt;input type="submit" value="Submit" id="button"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;/form&gt;
</code></pre>

<p>javascript</p>

<pre><code>&lt;script src="js/jquery.reveal.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $(document).ready(function() {

        $('#button').click(function(e) { // Button which will activate our modal
            $('#modal').reveal({ // The item which will be opened with reveal
                animation: 'fade',                   // fade, fadeAndPop, none
                animationspeed: 600,                       // how fast animtions are
                closeonbackgroundclick: true,              // if you click background will modal close?
                dismissmodalclass: 'close'    // the class of a button or element that will close an open modal
            });
        return false;
        });
    });
&lt;/script&gt;
</code></pre>

<p>How do I redirect the pages according to the radio button selected. I am new to jquery, any help?</p>

<p>Thanks in advance.</p>
