I have the following function in which I'm trying to get CSS specs for various elements. One works and the other doesn't, and I don't know why.
function click(el) {
var chld = $(el).children().eq(1), dsply1 = $(chld).css("display"), dsply2 = ("#genID").css("display");
...
}
I get the value for dsply1 but not dsply2. Instead I get this error:
Object does not support property or method 'css'