i throw a string value from the database in an input box...when i click update button, i need to clear the textbox after clicking update button..how?thanks a lot...
lloydsbackyard
0
Light Poster
Recommended Answers
Jump to Post<form onsubmit='document.getElementById("textbox").value="";'> <!-- or --> <input type='submit' onclick='document.getElementById("textbox").value="";'>
or any other combination of form/input & onanything
Jump to PostUse some javascript?
// Make sure input as an ID
// e.g. <input type="text" id="message">
// put this in Javascript in for when the user has submitted the form<script type="text/javascript">
input = document.getElementById('message');
input.value="";
</script>
All 7 Replies
almostbob
866
Retired: passive income ROCKS
public-image
0
Junior Poster in Training
karthik_ppts
81
Posting Pro
lloydsbackyard
0
Light Poster
public-image
0
Junior Poster in Training
almostbob
866
Retired: passive income ROCKS
lloydsbackyard
0
Light 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.