Can't build efficient selector for getting selected rows form inputs
Can't build efficient selector for getting selected rows form inputs
shoe788
Posts: 3Questions: 2Answers: 0
See http://jsfiddle.net/shoe788/s5r944xd/1/
I want to build a form submission by which a user selects rows and then clicks "save".
table.$(".selected").find("input")
works to get what I want, but table.$(".selected input")
is ideal since it is more efficient.
The first piece of code works fine, the second returns an empty result set. Doing $(".selected input")
on a plain html table selects the correct inputs.
Why is the more efficient selector not returning anything?
This discussion has been closed.