Here I placed the table inside form to arrange the form items.
It does not work even though it is valid.\[code\]<form method="get" action="another.php"><table width="50%" border="0" cellspacing="0" cellpadding="0"><tr> <td width="60%"> Number: <input type="text" name="number" /> </td> <td width="20%" align="center"> Title: <input type="text" name="title" /> </td> <td width="20%"> Short Desc: <input type="text" name="shortdesc" /> </td></tr></table></form>\[/code\]When I press Enter, the form won't submit.
where as if i place a submit button anywhere inside the form, it works for both Enter key and Button click.\[code\]<input type = "submit" value="http://stackoverflow.com/questions/15716376/Submit" />\[/code\]But I don't want any buttons for submissions. I Submit the form by pressing Enter key.
Any clues why this doesn't work ?
It does not work even though it is valid.\[code\]<form method="get" action="another.php"><table width="50%" border="0" cellspacing="0" cellpadding="0"><tr> <td width="60%"> Number: <input type="text" name="number" /> </td> <td width="20%" align="center"> Title: <input type="text" name="title" /> </td> <td width="20%"> Short Desc: <input type="text" name="shortdesc" /> </td></tr></table></form>\[/code\]When I press Enter, the form won't submit.
where as if i place a submit button anywhere inside the form, it works for both Enter key and Button click.\[code\]<input type = "submit" value="http://stackoverflow.com/questions/15716376/Submit" />\[/code\]But I don't want any buttons for submissions. I Submit the form by pressing Enter key.
Any clues why this doesn't work ?