using text instead of convencial submit button

If we want to submit form using text instead of convencial submit button then follow the article.

We’ve have to use following javascript code on click event.

	document.formname.submit()

For Example:

<form action='newsletter/index' name='newsletter'>
<input type="text" name="email" class="smalltxt" /><br />
<a href="javascript:;" onclick="document.newsletter.submit()">Submit</a>
</form>
 
Hope this will help you.

Popularity: 13% [?]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Oct29

Leave a Reply