Jquery remove text from span

后端 未结 3 691
[愿得一人]
[愿得一人] 2021-02-04 15:31

I\'m new to JQuery and really struggling how to perform the query I want.

I\'m using SharePoint, and the when using the External Data Column and set it to required field

3条回答
  •  难免孤独
    2021-02-04 15:51

    $('span.ms-error:contains("External Data")').hide();

    If you know for sure that these span's are inside a certain table or a div then target it specifically inside those to make the script perform better.

    eg.

    $('.ms-usereditor span.ms-error:contains("External Data")').hide();

提交回复
热议问题