How to enable the ajax call when i change the selection of the dropdown1 and dropdown2 and click the button Ajax Call not working?
<p>when i 1st login into the page the page displayed properly and i am able to puss the parameters from the datatables properly,but when i select the new option from my dropdown Ajax call not working when i click the button ?</p>

  

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Using JQuery DataTables plugin with AJAX source
    implemented in Java web application&lt;/title&gt;
&lt;link href="media/dataTables/demo_page.css" rel="stylesheet"
    type="text/css" /&gt;
&lt;link href="media/dataTables/demo_table.css" rel="stylesheet"
    type="text/css" /&gt;
&lt;link href="media/dataTables/demo_table_jui.css" rel="stylesheet"
    type="text/css" /&gt;

&lt;link href="media/themes/base/jquery-ui.css" rel="stylesheet"
    type="text/css" media="all" /&gt;
&lt;link href="media/themes/smoothness/jquery-ui-1.7.2.custom.css"
    rel="stylesheet" type="text/css" media="all" /&gt;
&lt;script src="js/jquery-1.7.1.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery.dataTables.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
        var oTable;
        //var gaiSelected =  [];

        $(document).ready(function() {

            $(".Test").show();
            $(".test").hide();
            $("button").click(function() {
                $(".slidingDiv").show();    
                   oTable.fnDraw();
     oTable=$("#Administrator_Cd").dataTable({
            //"sScrollY": "200px",

            "bServerSide" : "true",
            "sAjaxSource" : "http://localhost:8080/strutsdemo/AdministratorAction.do" ,
            "bProcessing" : false,
            "sPaginationType" : "full_numbers",
            "bJQueryUI" : true,
            "bRetrieve" : true,
            "bDestroy" : true,
            "bAutoWidth" : false,
            "fnServerData" : function(sSource, aoData, fnCallback){
            var txt1=$('#txt').val();
            var select1=$('#select1').val();
            var select2=$('#select2').val();
            aoData.push({"name":"txt1","value":txt1});
            aoData.push({"name":"select1","value":select1});
            aoData.push({"name":"select2","value":select2});
            $.ajax( {
                "dataType": 'json',
                "type": "GET",
                "url": sSource,
                "cache":false,
                "data": aoData,
                "success": function (data, textStatus, jqXHR) {

                       totalRowCount = data.iTotalRecords;
                       fnCallback(data);
                     }
                  });
       },

        "aoColumns": [
                null, /* ID column */
                    null,
                    null,
                    null

                ],
          "aoColumnDefs" : [
                       {
                        "fnRender" : function(oObj) {
                            return '&lt;div align="center"&gt;&lt;input name="rdo" type="radio" value="'+ oObj.aData[0]+'"&gt;&lt;/div&gt;';                              
                        },
                        "aTargets" : [0]
                       }
                      ] ,
                      "fnDrawCallback": function() {
                             $.unblockUI();
                           }


    });

     });});
  /*  });
});
}); */      

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;div class="Test"&gt;
        Search:&lt;select id ="select1"&gt;
            &lt;option &gt;Administrator_Nm&lt;/option&gt;
            &lt;option&gt;Admin_Email_ID&lt;/option&gt;
            &lt;option&gt;Admin_Fax_phone_Num_Tx&lt;/option&gt;
        &lt;/select&gt; &lt;select id="select2"&gt;
            &lt;option &gt;starts with&lt;/option&gt;
            &lt;option&gt;equals&lt;/option&gt;
        &lt;/select&gt; &lt;input type="text" id="txt" /&gt;
        &lt;button&gt;search&lt;/button&gt;
        &lt;div class="test"&gt;
            &lt;input type="button" value="Setdefault" /&gt; &lt;input type="button"
                value="Add new Account group" /&gt;
                &lt;input type="button" value="s"/&gt;
            &lt;div class="slidingDiv"&gt;
                &lt;table id="Administrator_Cd" class="display"&gt;
                    &lt;thead&gt;
                        &lt;tr&gt;
                            &lt;th&gt;#&lt;/th&gt;
                            &lt;th&gt;Administrator_Nm&lt;/th&gt;
                            &lt;th&gt;Admin_Email_ID&lt;/th&gt;
                            &lt;th&gt;Admin_Fax_phone_Num_Tx&lt;/th&gt;
                        &lt;/tr&gt;
                    &lt;/thead&gt;
                &lt;/table&gt;
            &lt;/div&gt;

        &lt;/div&gt;
    &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
