TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
imran bhatti
NA
28
5.4k
javascript for cascading dropdownlist
Dec 23 2016 12:19 PM
using this code in mvc
In view
<script>
$(function () {
//Dropdownlist Selectedchange event
$("#ContId").change(function () {
$.get("/Home/GetStateById", { ID: $("ContID").Val() }, function (data) {
$("#St").empty();
$.each(data, function (index, row) {
$("#St").append("<option value='" + row.ID + "'>" +
row.Statename + "</option>");
// here we are adding option for States
});
})
});
});
</script>
but this is not working plz check this code there is an exception coming at this line .
$.get("/Home/GetStateById", { ID: $("ContID").Val() }, function (data) {
Reply
Answers (
5
)
Get Previous URl From History Using Jquery
Error: permission denied to access property "apply"