javasript to jquery
I was using javasript before for emicalculator but now i need to convert that in jquery i am not getting what should be use in jquery on the following place.
Code:
var j = document.forms[0].emi.selectedIndex;
Because it is giving me error.
Integerz
http://www.integerz.com/
jQuery("form:first select[name=emi] option:selected").attr("value");
That should return the value of the selected option.
jQuery("form:first select[name=emi] option:selected").get(0).selectedIndex;
Should get you the selected index.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks