I
I
iamsaint2012-02-14 17:03:05
JavaScript
iamsaint, 2012-02-14 17:03:05

jquery element id in table cell?

Good afternoon.
Can you please tell me how to get the id of all inputs in the table cells in jquery?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MT, 2012-02-14
@MTonly

api.jquery.com/map/

S
spbcypher, 2012-02-14
@spbcypher

$(":input","td") - will select all inputs
by them in the loop, in the loop elem.attr('id');

M
masterx, 2012-02-14
@masterx

$(function() {
      $(':input', 'td').each(function (i) {
          alert(this.attr('id'));
        }
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question