Hi,
I have a HTML Table that I populate using JQuery according to if a user clicks certain buttons and enters certain data. Finally when the user wants to submit this form, I have a validation piece of code that attempts to check if the Table is empty or not. I use JQuery in all of this, and it seems to work in FireFox and Chrome, but not in IE?
My initial HTML Table looks like:
My Code to Add a Row is:
Finally when I have to validate my form, I do something like:
This works fine on FireFox and Chrome, but on IE it does not complain if the Table is empty. I then put the following code for debugging above it i.e.:
It seems that
On FireFox and Chrome, both of the above are 0. I am wondering why in IE does an empty tr get introduced?
Thanks a lot to you guys for your help,