unknown unknown - 1 year ago 67
HTML Question

Use textfield instead of submit button to pass data

Hi guys I just want to know if there is another way to pass form from php using textfield instead of submit button, because i want to send my updated data using textfield or password so the user will just enter the textfield after typing this is how my code looks like

echo "send data";

<input type = "text" id = "textfield">

Answer Source

Execute a javascript function on textfield's onblur event and submit your form on its blur event.

<form id="form">
<input type = "text" id = "textfield" onblur="submitMe()">

function submitMe() {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download