How to change label text?

前端 未结 3 1239
感动是毒
感动是毒 2021-01-22 05:04

I try to change label text but nothing works

  function changeText(lblTxt) {

        var lblAjaxUpdate = $(\"#\" + Key).find(\"[class=\'label\']\");//finds the          


        
3条回答
  •  深忆病人
    2021-01-22 05:37

    in your case:

    lblAjaxUpdate.text(lblTxt)
    

    or

    lblAjaxUpdate.get(0).InnerText = lblTxt
    

提交回复
热议问题