Get Text of checkbox with Jquery

后端 未结 5 638
故里飘歌
故里飘歌 2020-12-06 10:24
Pre-Payment

How would I get the text \"Pre-Payment\" from this using Jquery?

5条回答
  •  生来不讨喜
    2020-12-06 10:58

    You should probably have a value attribute in the checkbox.

    Pre-Payment

    Then you can simply use the attr command:

    $(input).attr('value');
    

提交回复
热议问题