Comment on Tutorial - Click to remove an element from a select html form using javascript By Emiley J.
Comment Added by : Tom Theriault
Comment Added at : 2010-12-14 14:54:09
Comment on Tutorial : Click to remove an element from a select html form using javascript By Emiley J.
Hi,
I am new to html, and javascript.
I've built a form, with one field with a click of a character A-Z and/or 0-9 will passit to my field in my form.
I am using a simple javascirpt passit function.
I am also wanting to delete the last character.
But I can not find a simple function that will allow me to delete the last character as I click on a character I would like to click and delete just as easily.
Here is my passit function:
function passit(str)
{document.plate.plateinput.value+=str}
I copied the same function and changed the name and used a minus instead of a plus in front of the equal sign but it didn't work:
function clearit(str)
{document.plate.plateinput.value-=str}
Can you help me here.
I've assigne this " <- " on my form to the javascript "clearit" so every time I click on " <- " I want to delete the last character in my field.
Thank you.
Tom :-)
Snozzle's Car Washes
410.456.0177
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Subscribe to Tutorials
Related Tutorials
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Archived Comments
1. Thanks a lot for valuable program.
View Tutorial By: Kailash at 2012-07-30 10:09:12
2. Please tell me the process, how to compile the mid
View Tutorial By: Manish at 2008-11-14 13:33:43
3. OK 0
COM1
javax.comm.CommPortIdenti
View Tutorial By: sruthi at 2013-01-20 10:37:41
4. Easy to understand... thank u....
View Tutorial By: saranya at 2013-02-11 10:37:07
5. I liked it.
View Tutorial By: savitha at 2011-05-06 02:23:46
6. nice... thanks for the explain, you safe my day...
View Tutorial By: Joseph Louis at 2011-05-11 08:53:53
7. Very good
View Tutorial By: take at 2010-03-29 07:47:01
8. somebody help me doing my case study .. its a rese
View Tutorial By: lady at 2013-12-25 08:21:03
9. Good example.
Leslie V
www.g
View Tutorial By: Leslie V at 2009-10-14 00:47:06
10. where's your main sir?
View Tutorial By: armor at 2010-12-08 01:00:45