Sign in to follow this  
d0ublezer0

val() всегда возвращает 1

Recommended Posts

посмотрите что возвращает $("[name='virtuemart_shipmentmethod_id']")
val() - возвращает value первого элемента в наборе

Share this post


Link to post
Share on other sites

спасибо, поправил 

$('body').on("change", "[name='virtuemart_shipmentmethod_id']", function (e) {
	var $method_id = parseInt($("[name='virtuemart_shipmentmethod_id']:checked").val());
  $("#sel_id").text($method_id);
});

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Member Statistics

    46,560
    Total Members
    3,128
    Most Online
    AnnaYa
    Newest Member
    AnnaYa
    Joined
  • Recently Browsing   0 members

    No registered users viewing this page.