how to send value with ajax jquery to contorller -


how send id controller without input type hidden , send them forms , submit value delete product id how it?

        @using (html.beginform("delete", "reorder", formmethod.get))         {             <input type="hidden" id="lblid" name="id"  />             <table border="1">                 <tr>                     <th>productid</th>                     <th>name</th>                     <th>color</th>                     <th>operations</th>                 </tr>                   @foreach (myproduct product in model)                 {                     <tr>                         <td>@product.productid</td>                         <td>@product.name</td>                         <td>@product.color</td>                         <td><input type="button" value="delete" onclick="delete(@product.productid)" /></td>                     </tr>                 }             </table>         }     function delete(id) {                 $('#lblid').val(id);                document.forms.item(id).submit();   } 


Comments