how to load cascading dropdownlist each other asp.net mvc3? how can i do? i have been utilizing from http://geekswithblogs.net/ranganh/archive/2011/06/14/cascading-dropdownlist
For starters, the tag in which you are loading jquery is not properly closed:
<% using (Html.BeginForm()) { %>
Customer Name:
<%= Html.DropDownList(
"Customers",
null,
"** Please Select **",
new { id = "ddlCustomers" }
)%>
Job Name:
<%= Html.DropDownList(
"Jobs",
null,
"** Please Select **",
new { id = "ddlJobs" }
)%>
<% } %>
Also jQuery 1.4.4's kinda old. Maybe you wanna switch to a more recent version.
Another things that I have fixed in your code is the usage of Url helpers instead of hardcoding urls, missing closing I don't know how are you guys writing/indenting your code, but I would really recommend you putting a little more attention. And next time when developing a javascript intensive web application and something doesn't work, your immediate reflex should be to look in the FireBug console or Chrome developer toolbar (depending on the web browser you are using) instead of posting on Stack Overflow without any investigation. FireBug would have alerted you on at least 50% of the errors you committed in your code. Further improvement of this code is to get rid of });
for the document.ready
handler, broken markup with inconsistent opening and closing and tags, ...
ViewData
by introducing view models and the usage of strongly typed helpers, as I have exemplified in this post: https://stackoverflow.com/a/4459084/29407