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 840671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:39:48+00:00 2026-05-15T05:39:48+00:00

i want after i type 0203-ED in textfield …two character behind that text can

  • 0

i want after i type “0203-ED” in textfield …two character behind that text can control the radio button..
“ED” character from that text can make one radiobutton which has value=”ED” are checked…

what script that can make it work??

<script type="text/javascript">
 var model=$("#tags1").val(); 
 var version[0,0]="JD"; 
 var version[0,1]="87.5-107.9"; 
 var version[1,0]="ED"; 
 var version[1,1]="87.5-108.0"; 
 var version[2,0]="EED"; 
 var version[2,1]="65.0-74.0"; 

 version for (var i = 0; i < version.length; i ++) {
    if (model,lastIndexOf(version[i,0])!=-1) { 
     $("#value").replaceWith("<div id='value'>"+version[i,1]+"</div>"); 
    } else { default: $("#value").replaceWith("<div id='value'></div>")
    } 
 } 
</script>

may be it needs to combine with your answer..

  • 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-15T05:39:49+00:00Added an answer on May 15, 2026 at 5:39 am
    var buttons = [];
    //store radio buttons in the array buttons
    //assign onKeyUp() to `onkeyup` attribute of the text input
    function onKeyUp()
    {
      var input = document.getElementById("txtInput_id");
      var text = input.value;
      if(text.length < 2)
        return;
      text = text.substring(text.length - 3);
      for(var i = 0; i < buttons.length; i++)
      {
        if(buttons[i].value == text)
          buttons[i].checked = true;
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everyone..i want after i type 0203-ED in textfield ...two character behind that text can
I got this url /search/renttype-all.place-all.type-all.bedrooms-all.0.0/ I want to get the text after the second
i have textfield inside html table..i want after i type something like name in
i have one textfield and one show button.. i want after i have been
I want to prepare a list of type CampaignDetails after comparing the two list
I know I can use install-data-hook to do anything I want after my data
I want to add space after every two chars in a string. For example:
dear all..i have a textfield <tr> <td> <td><input type=text id=model_name></td> </td> </tr> and a
i want after i have been type 123A0001-123A0100 the result is 100 . Or
In a TextBox input. After type enter key, i want to hide soft keyboard.

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.