<table class="window" style="margin-top: 15px; text-align: center;"> <tr id="NavMonth"> <td id="m1" onclick=""> Jan </td> <td id="m2" onclick=""> Feb </td> <td id="m3" onclick=""> Mar </td> </tr> </table> <script type="text/javascript"> $(document).ready(function () { $('.window td').on('click', function () { var idName = this.id; $('#hidden').val(idName); }); }); </script>
dataSource: { transport: { read: { url: "http://<%=strWcfServer%>/WcfService1/Service1.svc/Total_Product_Count_Monthly?month=<%=month_number%>", dataType: "json" } } }
Using Fiddler, you need to determine what the exact querystring looks like to make sure it is properly formatted. From there, you can also simulate the call yourself using Fiddler to make sure the problem does not lie elsewhere.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)