| |

VerySource

 Forgot password?
 Register
Search
View: 608|Reply: 1

Is there a name attribute in the form !!!!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-2-6 13:30:01
| Show all posts |Read mode
var form = document.createElement ("form"); form.action = "/ www / buildSale.action?"; form.target = "picSubMit";
form.name = "formkk _" + i;
form.method = "post";


I created the form object in javascript, and assigned a value to name, but the code generated by the page is

<form action = "/ www / buildSale.action?" target = "picSubMit" method = "post">
</ form>

Why is the name attribute not generated ???? Please give pointers to that expert ... Thank you
Reply

Use magic Report

0

Threads

63

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-3-25 22:15:01
| Show all posts
Unclear,

Why name it? Just document.forms [i]
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list