[jQuery]判斷Radio選單是否選中

有時在製作選單時要判斷使用者是否有選取選取的項目

例如:

<input type=”radio” name=”Shipping” value=”USPS First Class Mail:2.45″ />USPS First Class Mail – $2.45<br>

<input type=”radio” name=”Shipping” value=”USPS Priority Mail:7.15″ />USPS Priority Mail – $7.15<br>

<input type=”radio” name=”Shipping” value=”USPS Express Mail:20.95″ />USPS Express Mail – $20.95<br>

利用 $(“input[name=’Shipping’]:checked”).length < 0

來判斷使用者是否有選擇項目

 

40 則迴響於《[jQuery]判斷Radio選單是否選中

  1. Fantastic site you have here but I was curious if you knew of any forums
    that cover the same topics discussed here? I’d really like to be a part of community where I can
    get opinions from other knowledgeable individuals that
    share the same interest. If you have any recommendations, please
    let me know. Many thanks!

  2. It’s the best time to make a few plans for the longer term and it’s time to be happy.
    I have read this submit and if I may I desire to suggest you few
    attention-grabbing issues or suggestions. Maybe you could write
    next articles relating to this article. I wish to learn even more issues approximately it!

  3. After I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I receive 4
    emails with the exact same comment. Is there a way you can remove me from that service?
    Thank you!

  4. Hey would you mind stating which blog platform you’re working with?
    I’m going to start my own blog soon but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your layout seems different then most blogs and I’m
    looking for something unique.
    P.S My apologies for being off-topic but I had to ask!

  5. I comment each time I appreciate a post on a site or if I have something to valuable to contribute to the conversation.
    It’s caused by the sincerness communicated in the article I browsed.
    And on this article [jQuery]判斷Radio選單是否選中 |TEN01.
    I was moved enough to post a comment 🙂 I do have a few questions for you
    if it’s okay. Is it only me or does it look as if like some of the comments
    come across as if they are written by brain dead people?
    😛 And, if you are writing at additional social sites, I’d like to keep up with everything new you have to post.
    Could you list the complete urls of all your community pages like your twitter
    feed, Facebook page or linkedin profile?

  6. Very good blog you have here but I was curious about if
    you knew of any discussion boards that cover the same topics discussed here?
    I’d really like to be a part of community where I can get feedback from other knowledgeable people that share the same interest.
    If you have any suggestions, please let me know. Appreciate it!

  7. Do you mind if I quote a couple of your articles as long as I
    provide credit and sources back to your blog? My website
    is in the very same area of interest as yours and my visitors would truly benefit from some of the information you present here.
    Please let me know if this ok with you. Regards!

  8. We’re a gaggle of volunteers and starting a new scheme in our community.
    Your website provided us with valuable information to work
    on. You have performed an impressive process and our
    whole group shall be grateful to you.

  9. Today, I went to the beach front with my children. I
    found a sea shell and gave it to my 4 year old
    daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear
    and screamed. There was a hermit crab inside and it pinched her
    ear. She never wants to go back! LoL I know this is completely off topic
    but I had to tell someone!

    Also visit my homepage: Marvel: Avengers Alliance Cheats

  10. Howdy! This article could not be written much better! Reading through this post reminds me of my
    previous roommate! He constantly kept talking about this.

    I am going to send this information to him. Pretty sure he’s going to have a good read.
    Thanks for sharing!

  11. Just desire to say your article is as amazing.
    The clarity in your post is simply cool and i could assume you’re an
    expert on this subject. Fine with your permission let me to
    grab your feed to keep updated with forthcoming post.

    Thanks a million and please continue the enjoyable work.

  12. Hi! This is kind of off topic but I need some help from an
    established blog. Is it hard to set up your own blog?
    I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about setting up my own but I’m not sure where to begin.
    Do you have any tips or suggestions? With thanks

  13. Hello just wanted to give you a brief heads up and let you know a few of
    the pictures aren’t loading correctly. I’m not
    sure why but I think its a linking issue. I’ve tried it in two different
    web browsers and both show the same outcome.

  14. Have you ever thought about adding a little bit more than just your articles?
    I mean, what you say is valuable and all. But imagine if you added some great visuals or video clips
    to give your posts more, “pop”! Your content is excellent but with pics and videos,
    this website could definitely be one of the most beneficial in its niche.
    Fantastic blog!

  15. I’ve been browsing online more than three hours today, yet I
    never found any interesting article like yours.

    It’s pretty worth enough for me. Personally, if
    all site owners and bloggers made good content as you did, the net
    will be much more useful than ever before.