javascript - class as an element in an object -


Hi, I'm trying to read html to get some data from Yahoo stock, and I want to read it What is that class? So what do I have here?

data.query.results.span [0] .strong.class

My problem Javascript does not like class there and takes it as a special Key word or something

when I do data. Some .results.span [0]. Strong content works fine.

Strong first class has 2 elements inside the second material.

Is there any way that instead of looking at JS in the classroom instead of a keyword in that JSN object?

Thanks

  data.query.results.span [0] .stong ['class']   

class in a reserved future The keyword is, and now most modern browsers will bomb me, I know Safari does not like it.

Comments