I am create a form in html for submit data. When I shall reach save button by tab press and press tab again then tab will act as a Enter key. That means data will save. How can i do this?
I have use the following code
<form id="form">
<input type="text" />
<input type="text" />
<input type="text" />
<input disabled="disabled" />
<input readonly="readonly" value="readonly" />
<textarea></textarea>
<input type="submit" />
$(":input").on("keydown", function(event) {
if (event.which == 9) {
event.startPropagation();
}
});
Please tell me the solution.