Posts by user129359 • 76 points
3 posts
-
0
votes2
answers149
viewsA: Jquery - Multi-line Viacep autocomplete
.next() will not find the street input, because next returns the next element, which in this case is none, since the CEP input is the only element inside the <td>. To find the street input,…
-
6
votes2
answers153
viewsA: How to add two values of an input by checking checkbox
Well, you just need to fetch the value of your element and then add/subtract with what you want. Don’t forget to turn the value into a float, because the values of the DOM elements always come as…
-
0
votes1
answer1055
viewsA: Alphabetizing an object array
The callback passed in Sort takes two arguments, which are the two items you should compare, and then returns a number greater than 0 to say that the first element is greater, or vice versa. In your…