Ajax requests data from the server through the client Ajax and fills it in the DOM. the filled data is: & lt; input & nbsp; typetext & nbsp; nameinfo & nbsp; & gt; why can't I retrieve the info value if I want to submit a form from the ajax request? Ajax data filling forms
The client Ajax requests the server's data and fills it in the DOM. the filled data is:
// Ajax request data
If you want to submit a form and cannot obtain the value of info, why?
Share: More
------ Solution --------------------
Ajax is used to obtain the value of the form control. Generally, this control is added with an id attribute, and getelementById is used to obtain the value. The input mark of the landlord does not contain the id attribute. With ajax technology, you do not need to mark the form.
------ Solution --------------------
-
Product Type:
Select Product Type MusicForklift truck
Select the product type to improve the product attributes.
Are you kidding?
GetAttrList is called in an invisible layer
The drop-down list is not visible. how can I execute getAttrList?
Since it cannot be executed, no relevant data is submitted.