How do I check if a column exists in a HTML table using JQuery.
I am creating a dynamic table on my server side and need to check if a column exists in the HTML table and execute a call back based on that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you can create an HTML table dynamically, you can attach an id or class to every column.
you can get the amount of specific elements with:
$('element').size();so you can check if this equals zero or not.