how to clear up text field on click?

Let’s learn how to clear up text field on click. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

clear text field value when mouse click

I have three text input fields, like this on jsfiddle. I put my code here also: <table> <tr> <td><input type="text" value="age" size=30> </td> </tr> <tr> <td> <input type="text" value="Name" size=30> </td> </tr> <tr> <td><input type="text" value="your email" size=30> </td> </tr> </table> css: input{color:#CCC;} js: $('input').click...

Answer:

It doesn't work on jsfiddle because you didn't choose to load jQuery (on the left sidebar). Also, you...

Read more

Leem.fin at Stack Overflow Mark as irrelevant Undo

Other solutions

Answer:

restart your internet or computer

Read more

baffled at Yahoo! Answers Mark as irrelevant Undo

How do you make default text in the text field?

I want text to appear in the text field by default, like to say "Put your description here" but then when you click on it, it disappears. Similar to when asking a question on yahoo answers, it says "What would you like to ask" and...

Answer:

Hello, Basically to make the text appear by default it is: <input type='text' value='Your Default...

Read more

curtdbz at Yahoo! Answers Mark as irrelevant Undo

How do I make submit button not function if the text field is empty?

I have a search bar at the top of my website and it works when you type stuff in it and click "search" but when the text field is empty and you click the search button, it brings you to my 404 error page. I would like the search button to not...

Answer:

Use PHP to redirect to a different page if there's nothing in the field maybe? Or use javascript to...

Read more

heroofhy... at Yahoo! Answers Mark as irrelevant Undo

Form design: Should radio buttons control the content of associated text fields?

A real nuts-and bolts design question; let's see if I can describe it in a way that makes sense: I've got a web form that allows me to create or edit an object -- let's say a pot-luck dinner invitation.  In this form, the user gets a group of radio buttons...

Answer:

A good suggestion, but this is where my attempt to simplify my problem to an easily-understandable example...

Read more

Jim Miller at Quora Mark as irrelevant Undo

HTML5 Placeholder input readiness: Is there potential for user confusion if input default text is hidden only after typing starts (on change) rather than when the field is initially clicked into (on focus)?

I think the HTML5 Placeholder function (e.g., Base · Bootstrap)  for default form field text (termed "input as a label" by Luke Wroblewski) is excellent and it standardizes a JavaScript-based design pattern that historically has been all over...

Answer:

Yes, there is. People solve this by highlighting the whole input field on focus to signal "input...

Read more

Truong Nguyen at Quora Mark as irrelevant Undo

Can I edit text in a Word 2010 field without causing other problems, or is there a way to remove it from the field and make it normal text?

When I click on the bibliographic part of some endnotes, grey highlighting appears over the full bibliographic citation, but not beyond it. Copying and pasting the full information replicates the behaviour, though I can copy part of it and have it become...

Answer:

For a normal field code in Word, you can select the field code result and press Ctrl-Shift-F9 to unlink...

Read more

Eric Fletcher at Quora Mark as irrelevant Undo

pass contents from a file upload upload field to a text field on parent page

i have a shop that needs to upload images. i have all the code ready for upload and image resizing. however, i need to do it like this. on the product submit page.. a link that says upload image with TEXTFIELD1 beside it. you click the upload link and...

Answer:

Hello, binarian: Ok, so this what I have done so far: -I have fixed your upload/resize scripts to put...

Read more

binarian-ga at Google Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.