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.
Because it is giving me error.
var j = document.forms.emi.selectedIndex;
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread