javascript - How to remove a DOM element or select from a $(this).html() in jQuery? -
I am trying to get the carat within an HTML element, either ?? ² (▲) and â ?? ▼).
So I have used it (it is within a separate function
Returns: Now if I want to completely interrupt this HTML element, how do I do it? In addition to this, if I want to select actual carat for comparison How can I do this? Update : Answer more and more How do I select the carat from HTML: returns: To remove the domain element and just get the text: To get span lessons in the current context, use it: console.log ($ (this.html ()))
Phone One? ² < / P>
console log ($ ('# sort-caret', this) .html ());
undefined
var s = 'phone & lt; span id = "sort-caret" & gt; Ã? ² & lt ; / span> 'var var / r & lt; / / 1 & gt; / console.log (s.replace (r, ""));
$ (this) .find ('span'). Html ()
Comments
Post a Comment