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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:40:31+00:00 2026-05-23T02:40:31+00:00

Use default: <input type=radio name=restype value=resdef onfocus=document.getElementById(‘resupload’).disabled = true; document.getElementById(‘resadres’).disabled = true; checked=checked /><br

  • 0
 Use default: 
 <input type="radio" name="restype" value="resdef" onfocus="document.getElementById('resupload').disabled = true; document.getElementById('resadres').disabled = true;" checked="checked" /><br />

 Adres: 
 <input type="radio" name="restype" value="resadres" onfocus="document.getElementById('resupload').disabled = true; document.getElementById('resadres').disabled = false;" /> 
 <input type="text" name="resadres" id="resadres" disabled="disabled" /><br /><br />

 Upload: 
 <input type="radio" name="restype" value="resupload" onfocus="document.getElementById('resadres').disabled = true;  document.getElementById('resupload').disabled = false;" /> 
 <input type="file" name="resupload" id="resupload" disabled="disabled" />

This code works in firefox and IE but not in Chrome. Where is the problem?

  • 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-23T02:40:31+00:00Added an answer on May 23, 2026 at 2:40 am

    onfocus works when you use tab key to navigate. You should use onchange event for form elements.

    http://jsfiddle.net/5NaH5/

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

Sidebar

Related Questions

The default decorator for the Zend_Form_Element_Radio is <label for=type_id-1><input type=radio name=type_id id=type_id-1 value=1>Pack</label> The
I am using jquery my html code <input type=radio name=maritalstatus id=maritalstatus value=single/> single <input
I have the following html code: <div class=Radios> <span class=radio> <input type=radio value=1> yes
I need to give a default value for input type=text field as follows: <input
I have a list of possible paths to use for a default input data
When you use a <input type=file> in your application you get the file select
So C# now allows you to use default(Foo) to get a recognized not filled
When I use the default java locale on my linux machine it comes out
When I use the default model binding to bind form parameters to a complex
At my company we use the default agile process template with some modificiations. One

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.