Advertisement

07.17.2008 at 06:26AM PDT, ID: 23573090
[x]
Attachment Details

something entered in text box, display a add button next to it

Asked by samic400 in JavaScript

I have a text box that I can only allow numeric characters to be entered into it. Once the user has entered something, I'd like to "display" an add button that will allow me to add this record to a DB. How can I hide button the first or "disable" them (grey them out) and once I have something entered in the text box, make the button active to my user?

I'm thinking I probably have to do something with the onkeypress event?

I just need a snippet of code to understand it. Thanks in advance.Start Free Trial
[+][-]07.17.2008 at 06:43AM PDT, ID: 22025333

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Sign Up Now!
Solution Provided By: Morcalavin
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.17.2008 at 06:44AM PDT, ID: 22025340

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.17.2008 at 06:47AM PDT, ID: 22025374

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 06:50AM PDT, ID: 22025411

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628