Hi!
I have dropdown list with sizes (s, m, l...) When user select s, on view will show one price, when select m will another price. Ho do i implement this? I think need use jquery. Maybe you can show me example.
I do next:
$('#IdSize').change(function () {
var price = "";
var idSize = document.getElementById();
price =...
})
I need get price from Table by IdSize.
price = Model.Prices.Where((p=>p.IdSizes = idSize))
Inside jquery can be used razor?
Please help
Loading
Mike JonsonPosted May 6, 2012, 11:01 AM
Satyapriya NayakPosted May 6, 2012, 9:24 AM
Please refer the below links
http://www.c-sharpcorner.com/UploadFile/vemuhemanth/cascading-dropdown-in-Asp-Net-using-jquery/
http://codeasp.net/articles/asp-net/214/cascading-dropdownlist-using-jquery-and-asp-net
http://go4answers.webhost4life.com/Example/set-selected-value-jquery-populated-120610.aspx
Thanks