How to change the text of a label?

后端 未结 9 801
刺人心
刺人心 2020-12-12 11:31

I have a radiobutton list and on click on the radio button item I have to change the text of its label. But for some reason it\'s not working. Code is below:



        
9条回答
  •  甜味超标
    2020-12-12 11:40

    $('#<%= lblVessel.ClientID %>').html('New Text');
    

    ASP.net Label will be rendered as a span in the browser. so user 'html'.

提交回复
热议问题