agent7
0
Light Poster
Recommended Answers
Jump to PostUse javascript, get the id or the name of the field and set its value to "" empty.
<form name="formName"> <input type="text" name="field" id="field_id" value="aaaaa" /> </form>
Then write code to execute this javascript:
document.formName.field.value=""; //OR document.getElementById("field_id").value="";
Jump to PostPost your code. Have you read the tutorials I gave you?
Jump to PostI am not familiar with these tags:
<html:text property="employerName"/>
So I don't think that this will work:
document.getElementById('employerName').value="";
The employerName in the getElementById must be the id attribute of the text field.Also if you want any of the javascript functions you have declared to be executed, you need …
All 9 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
agent7
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
agent7
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
agent7
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
agent7
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.