Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can we submit a form without a submit button?

Answer Posted / snc

We can use a simple JavaScript code linked to an event
trigger of any form field. In the JavaScript code, we can
call the document.form.submit () function to submit

Example 1
<form method='post' action='some_action'>
<select name='something' onchange=‘this.form.submit () ;'>
<option value='1'>1</option>
<option value='2'>2</option>
</form>

Example 2
<form method='post' action='something'>
<input type='checkbox' name='something'
onclick=‘this.form.submit ()'>
</form>

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a query to find the 2nd highest salary of an employee from the employee table?

985


Is php class name case sensitive?

909


What is the best way to change the key without changing the value of a php array element?

917


What are php errors?

901


What is restful api?

890


How error handling is being handled by php?

999


What type of headers that PHP supports?

979


What are headers in php?

907


What is the sign to start variables in PHP?

1018


Do you know what is the use of the function 'imagetypes()'?

899


Explain the purpose of output buffering in php.

937


Explain whether it is possible to share a single instance of a memcache between multiple php projects?

908


Explain $_FILES Superglobal Array?

976


How to process the uploaded files?

1051


How is it possible to propagate a session id?

936