Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Enable/Disable Reset Button

Posted on 2001-07-07
5
149 Views
Last Modified: 2008-03-06
Greetings all,

What I wish to do is enable the reset button if the user has made any changes to any field on the form. But I do not wish to hard code by hand every field within the form with a onChange event listener. What I ideally would like is a script that on page load would set this property for all fields.

Thanx in advance,

RBW
0
Comment
Question by:MistaBiggz
5 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 50 total points
ID: 6262314
<script>
function checkreset(obj)
{
   if(this.disabled==true||this.disabled==false)
   {
      this.disabled=true;
      return true
   }
   return false;
}

<input type=text onChange="this.form.resetbutton.disabled=false">

<input type=reset onClick="return checkreset(this)"
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6262525
Question -- if they aren't supposed to change it, why have it as a form field? Why not just display it?

If I see things in a form field, I assume it's because it's available for editing.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7910336
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7999602
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to CJ_S

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
0
 

Expert Comment

by:SpideyMod
ID: 8067833
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery 2 23
Multiflying 2 Input Text On a Table 7 31
Json Schema 8 32
How can I use an anonymous question as a Google Maps call-back function? 4 25
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question