|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
How the heck do you clear a textbox in a Form that has
a value inside it to give an example as to what goes into and how?? Here's what I mean in English (sorry, Japanese is out of the question today...) I have a textbox in a form that has the value of: mm/dd/yy Now, when the user clicks on the textbox (realizing HOW to type the information) the mm/dd/yy disapears and the cursor is ready for him/her to enter the new info. Thanks in advance! ![]() |
|
#2
|
||||
|
||||
|
In Visual Basic
Code:
Private Sub txtTextBox1_OnFocus(blah)
txtTextBox.Text = ""
End Sub
[code]
In ASP
[code]
<script language="JavaScript">
function ClearBox()
{
document.form1.test.value = ''
}
</script>
<form name="form1">
<input name="test" type="text" style="background:#369369" onFocus="javascript:ClearBox()">
</form>
|
|
#3
|
||||
|
||||
|
Thanks Memnoch, but I kept getting an erro on:
End Sub[code] and In ASP[code] What do those mean?? |
|
#4
|
||||
|
||||
|
Never mind. Duh! I'm such an idiot! Here's what I used, and it does EXACTLY what I want it to do without 10 lines of code, hehehe.
<input type='text' name='txtName' onFocus='this.value=""'> Thanks for the assistance! Now I just have to learn how to create a search box with radio buttons. I want it to search the movie database for; Genre - Actor's Last Name - Director's Last Name - Rating Any ideas? |
|
#5
|
|||
|
|||
|
You can create a series of radio buttons. One array for each catergory....Which will result in the same number of variables....Once you have the variables just query for them in a SQL Statement from teh Access database and place them in a table.....
Just a thought.... |
|
#6
|
||||
|
||||
|
Please don't resurrect dead threads.
This thread hasn't had a response in 19 months. |
|
#7
|
|||
|
|||
|
Excuse me for trying to help someone and not noticing the date
|
|
#8
|
||||
|
||||
|
Quote:
No offense, but trying to help someone 19 months after they asked the question, isn't much help. |
|
#9
|
|||
|
|||
|
Obviously I missed the date....If I noticed it was that old I would have not updated it...No offense but take it easy.....Its just a replay to a thread....No harm done
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Clearing a textbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|