php - Get the Value of form element - without clicking on submit button -
I have a form, I have said that choosing Volva from the drop down box. So without so I'll go to the next field, click on the submit button, which Keep event selection, onBlur = saveValue (); Savewall should be a JS function, which then sends an AJAX request to the server. & lt; Input & gt; value which should store PHP variables Volva
& lt; Html & gt; & Lt; Body & gt; & Lt; Form action = "" & gt; & Lt; Select name = "car" & gt; & Lt; Option value = "Volvo" & gt; Volvo & lt; / Options & gt; & Lt; Option value = "saab" & gt; Saab & lt; / Options & gt; & Lt; Option value = "fayat" & gt; Fiat & lt; / Option & gt; & Lt; Option value = "Audi" & gt; Audi & lt; / Options & gt; & Lt; / Select & gt; & Lt; Input type = "text" name = "ABC" /> & Lt; / Form & gt; & Lt; / Body & gt; & Lt; / Html & gt;
& lt; Select name = "car" onBlur = "saveValue (this.value);" & Gt;
Comments
Post a Comment