Results 1 to 2 of 2

Thread: javasript to jquery

Hybrid View

  1. #1

    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.
    var j = document.forms[0].emi.selectedIndex;
    Because it is giving me error.


  2. #2
    Join Date
    Feb 2003
    Michigan, USA
    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
HTML5 Development Center

Recent Articles