[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Enable/Disable Reset Button

Posted on 2001-07-07
5
Medium Priority
?
168 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 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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

872 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