jquery get a custom (made up) Attribute value

前端 未结 3 1114
终归单人心
终归单人心 2021-01-13 12:08

I have a the following html piece :

&l
3条回答
  •  迷失自我
    2021-01-13 12:34

    all you have to do is :

    fValue = $(input).attr("store-id");
    

    your snippet is trying to add to the 'value' attribute of a div (which does not exist)

提交回复
热议问题