| |

VerySource

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

Regular value name="xxxx"

[Copy link]

1

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-12-8 11:30:02
| Show all posts |Read mode
Use regular to take out <input type="text" name="xxxx"/>

The value of name
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-8 11:45:01
| Show all posts
<script type="text/javascript">
var name_p =/<input[\S\s]+?name=\"([^\"]+)\"[^>]+>/i;
var name ='<input type="text" name="xxxx"/>'.match(name_p)[1];
alert(name);
</script>
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