JS added to the form in Firefox to get no data to solve the method

Source: Internet
Author: User



I believe many friends have encountered such problems when making Web pages, that is, after adding data controls to the form with JS, the problem of not getting data under Firefox.



A few days ago, I was in the development of a use JS to add data to fill in the item, but also appeared this problem; At first I thought it was Firefox under the Ajax loading data out of the problem (because it can be normal to  under IE), after testing the original and this is the problem, but the form placed in a different position



When used in combination with form and table, many friends like to put it this way:



<table>



<form>



<tr><td>



data Space Add place



</td></tr>



</form>



</table>



The advantage of this is that the form can be produced by the interval is removed, in general is a good way to deal with, but if like I want to use JS in the form to add data to fill the thought that the use of this is not very good, because so put, JS added to fill in the data is not available under Firefox can be obtained ·; and then we have to use a stupid method,



It is:



<form>



<table>



<tr><td>



data Space Add place



</td></tr>



</table>



</form>



This is not afraid of the above situation ... ;



To add, we can remove the interval by using the form if there are gaps:



<form style= "Margin:auto; padding:0; ">


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.