get element value using jquery

前端 未结 2 945
一整个雨季
一整个雨季 2020-12-12 05:37

How do I get the value of the cell with class EventAddress using jquery?



        
                      
相关标签:
2条回答
  • 2020-12-12 06:12

    If you with "value" mean the content of the td-element, then you could do:

    $(".EventAddress").text();
    
    0 讨论(0)
  • 2020-12-12 06:23
    alert($('.EventAddress').html());
    

    Basic example: http://jsfiddle.net/LMBsc/

    0 讨论(0)
提交回复
热议问题