Posts by ayrton • 126 points
3 posts
-
1
votes2
answers147
viewsA: How to perform a query within a nodeList?
To verify which elements of its NodeList contains the new class you can use two methods: check the list of classes of each element, or test by selector. With the list of classes (classList): var…
-
0
votes2
answers1300
viewsA: How to replace a string in Jquery or Javascript
You can remove only the first character using substring: let string = $("[id$='textoMensagem11110']").text(); string = string.substring(1); $("[id$='textoMensagem11110']").html(string); It is worth…
-
0
votes2
answers150
viewsA: Function in jQuery Ajax does not return Value
This is because you are giving return before the value is set by the function, since it is asynchronous. One way to solve the problem would be to change the field value within the function, or add…