Problem with selecting multiple tables and access trough '[x]'
hi
i'm selecting tables in my page with the following selector:
- $(".mytables") // this finds 4 tables
Now the following code line is giving me error message : 'the css function/method is undefined...'
- $(".mytables")[0].css('property', value)
And the following lines are working correclty:
- $(".mytables").fisrt().css('property', value)
or
- var table = $(".mytables")[0]
- table.css('property', value)
Why this behavior ?? Where is the difference ??