Code is taking effect when it shouldn't be

后端 未结 2 1834
我寻月下人不归
我寻月下人不归 2021-01-25 14:18

I have a function where if the user clicks on a button, it will display a value in the textbox and it will perform a trigger to another function after a \'#btn\' button is click

2条回答
  •  难免孤独
    2021-01-25 14:55

    Use data instead of attr - attr takes a string, data takes JavaScript objects.

提交回复
热议问题