I am working in nopcommerce 4.2 mvc platform. In which I want to add checkbox and that checkbox value I want to pass from view to controller in setlocation url.routeurl function on onclick method in view.
But I confused that how can I get the checkbox value in routeurl that it is true or false.
Here is the html of checkbox and their setlocation event
<input type="checkbox" name="@T("WholeSale")" id="chb_wholesale" onclick="setLocation('@Url.RouteUrl("Vendor", new { vendorId = Model.Id, categoryId = Model.CategoryId, wholesale = xxx })')" />
Now how checkbox value I pass in wholesale parameter value.
Aucun commentaire:
Enregistrer un commentaire