V
V
Vitaly2015-10-06 12:17:39
JavaScript
Vitaly, 2015-10-06 12:17:39

How to get data from a table by id?

There is a table by clicking on tr, you need to get data from a specific td (each has its own id).
The data for the table I receive from a DB.
By clicking on tr : I don't get the desired result (
$(this).find('#user_id‘)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Shepelev, 2015-10-06
@Scorpiored88

Here is an example: jsfiddle.net/pcod2wd7
but why assign an ID (identifier) ​​to each block if you can read it and take its value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question