Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:05:52+00:00 2026-05-27T01:05:52+00:00

I try to implement the following code: <input type=radio name=yesno2 value=yes style=outline:0;/>Yes <input type=radio

  • 0

I try to implement the following code:

  <input type="radio" name="yesno2" value="yes" style="outline:0;"/>Yes
          <input type="radio" name="yesno2" value="no" style="margin-left:30px;    outline:0;"/>No</div>

in my javascript:

  <script>
if ($("input[name='yesno2']").val() == "no") {
  alert("ddd");
 }
  </script>

if I check no, it should show me the alert window, but it didn’t show. sorry if I just show you part of the code, anyone could show me what am I doing wrong, thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:05:53+00:00Added an answer on May 27, 2026 at 1:05 am
    <input type="radio" name="yesno2" value="yes" style="outline:0;"/>Yes
    <input type="radio" name="yesno2" value="no" style="margin-left:30px;    outline:0;"/>No</div>
    <br/><input type="button" id="btn1" value="GetRadioChecked">
    
    
     $("#btn1").click(function(){
    
            if($("input[name=yesno2]:checked ").val()=="no")
            {
                alert("no clicked");
            }
            else if($("input[name=yesno2]:checked").val()=="yes")
            {
                 alert("yes checked ");
            }
            else        
           {
               alert("nothing checked !")
           }
    
        });
    

    Working sample
    http://jsfiddle.net/WxmpJ/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to implement the following code: <div class=clearid=usernameline>username:<input type=text name=username id=username style=border:1px solid
I try to implement the following code: <!DOCTYPE html> <html lang=en> <head> <meta http-equiv=Content-Type
Given the following code, I try to implement the public static Point operator +(int
I try to implement the following code, this page will display when survey is
I try to implement the following code: <a href = http://www.google.com/ id=external>go to google</a>
I try to implement the following code: <a href = http://www.google.com/ id=external>go to google</a>
I try to implement the follwing code: <?php $yesno1=; $yesno2=; $option1=; $option2=; $option3=; if(isset($_POST['submit'])){
Try the following code public enum Color { Blue=1, Red=2, Green=3 } public List<Color>
I have the following code in django.template: class Template(object): def __init__(self, template_string, origin=None, name='<Unknown
I have implement the following code to create a SSL server socket. public void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.