How to add an HTML attribute with jQuery

后端 未结 7 716
无人及你
无人及你 2020-12-03 11:34

Well, I have this jQuery image slideshow that uses the attribute \"control\" inside an . Seeing how it didn\'t validate I searched for a way to add this attribute i

相关标签:
7条回答
  • 2020-12-03 12:02

    HTML:

    <a id="previous" href="#">...</a> 
    

    jQuery:

    $('#previous').attr('control', '-6');
    
    0 讨论(0)
提交回复
热议问题