$(document).ready(function()
alert($(“td”).val());
});
But the alert is empty.
How do I select the values in my table with jQuery? Thank you.
edit: I was asked what for:
I have a website that I need the database data from for a javascript function. I get the data from the database, put it a table and then select the data from the table for usage in the javascript. In the middle of my function I hvae the $(“td”)…whatever form my function.
If you’d like them as a comma-separated string of values: