Solved

Enable/Disable Reset Button

Posted on 2001-07-07
5
140 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now