使用正则表达式删除datalist标签,整个,包括标签的innerHtml内容。
<datalist id="sellPoint1"> <option label="提示1" value="Solid color easy collocation clothes"/> <option label="提示2" value="They are super soft and very comfortable to wear, helping you keep cool as you turn the heat up on the beach! Sexy, Hot, and Comfortable!"/> </datalist>
jQuery:$("datalist").remove();