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



    Integerz
    http://www.integerz.com/

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    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