Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".cantidad-check").on("input", function() {
- $this = $(this);
- var stock = parseInt($this.closest("tr").find("td:nth-child(4)").text());
- if ($this.val() > stock) {
- $this.css("border-color", "red");
- } else {
- $this.css("border-color", "");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement