?
Solved

Enable/Disable Reset Button

Posted on 2001-07-07
5
Medium Priority
?
162 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
[X]
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
5 Comments
 
LVL 22

Accepted Solution

by:
CJ_S earned 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
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…
Suggested Courses

752 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