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
ashok kumar
NA
89
36.1k
how to get the selected of all the drop downs using jquery
Aug 29 2013 3:33 AM
Hi,
All iam doing an tooltip type validation in my webpage in which i need to get all Dropdowns selected index ,if dropdown selected index is -1 then i should open an tooltip ,the logic for tool tip is working fine,but how to get the selected item index of all my drop downs, i tried something like this didnt workedout.
Pls help me out.atleast in the alert if i get all the dropdowns selected index it will be fine.
var parentsa = $('#aspnetForm');
$("input,select", parentsa).mouseover(function () {
var selected = $("input,select", parentsa).options[$("input,select", parentsa).selectedIndex].value;
$("input,select", parentsa).tooltip("open");
alert(selected);
});
Reply
Answers (
17
)
Code for Simple calculator in jquery
How i can using Jsquery to add VALUE many Textbox (ASP.NET)