Layui method to modify the value of select

The method of layui to modify the select value: first add the code "" in html5 to get the initial value; then set the value of select and radio buttons in js.



The operating environment of this tutorial: Windows7 system, layui2.4 version, this method is suitable for all brand computers.

Dynamically set the select value of layui

Recommended: "javascript basic tutorial" "layUI tutorial"

html5 plus the following code to get the initial value.

1 After

2





set select and radio button values ​​in js.

1

2

3

4

5

6

7

8

9

10

11

12



Give a specific example in

html

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27



    

  



  

                                            Front-end development, back-end development, product testing UI General Manager of Personnel and Finance Market

  

Guess you like

Origin blog.csdn.net/an17822307871/article/details/112646555