Hi,

I have a page in that i have some fields name,address,when I fill and once I click submit button,The text box should be clear and cursor should be replace there......

My page extension in .php

After Submission , you can call again same(Initial) page.(You can redirect the previous page.

Member Avatar for rajarajan2017
<script language="javascript">
function clearAll()
{	
var e = document.getElementsByTagName("textarea");
//Loop through all textareas
for(i = 0; i < e.length; i++){
  e[i].value = "";	
}
}
</script>
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.