jquery change div text

后端 未结 3 1881
太阳男子
太阳男子 2020-12-03 03:59
\'
\\n\\
3条回答
  •  醉话见心
    2020-12-03 04:55

    best and simple way is to put title inside a span and replace then.

    '
    \n\
    '+ '' + ''+ dialog_title+ '' '

    now you can simply use this:

    $('#'+div_id+' .widget-head sp#spTitle').text("new dialog title");
    

提交回复
热议问题