HowardwLo this looks like.

Sarkissian: HowardwLo show us what you’ve tried.

Saison: HowardwLo also, that’s now how you use data attributes.

Karlsen: Robertmaxrees: i know, its an example

Merckling: Then make a legit example?

Delcolle: Let me try asking in #css

Huckstadt: HowardwLo also, you cannot put divs in P tags technically.

Niedzwiedz: Robertmaxrees: Perfect!

Rex: Robertmaxrees: hmm. actually not perfect

Kozielski: Robertmaxrees: The elements loaded via ajax don’t react to click event

Jarrett: Then you’re binding something incorrectly. show me your code.

Hudy: Robertmaxrees: ya, just example 😀 here is what I’ve tried

Schaunaman: You cannot use data attributes like that.

Canaway: That’s not the correct format for them.

Luzell: Data-someName=”someValue”

Ellingson: Robertmaxrees: It works :

Murrish: Noway, in #css they’re becoming all too sophisticated

Radebaugh: It’s not at all indicative of your use-case.

Bryand: If you don’t provide a live sample, nobody chats

Athalone: Sal because they need to play with it.

Palmore: We’re often the same way here.

Mattila: Except me, i’ll talk to a door

Sarvey: Yes, but one can also say, “try this or try that”

Bavaro: Robertmaxrees: so my example needs to be 100% accurate to reflect use case when I’m trying to learn how to use attribute selectors and css selectors properly?

Gruman: Then if it doesn’t work, then try providing a live sample

Garduno: HowardwLo you need to at least give me valid markup.

Zimlich: Because otherwise things won’t work correctly.

Dubow: Also, you don’t use .attr for data attributes.

Searby: Robertmaxrees: how about this?

Eckenrode: Closer. so you want to get the next element with data-s ?

Kolis: I just want to know how to select the sibling given I don’t know the data-s attribute

Mattila: So you want the next div.yes

Rietdorf: Use an attribute contains selector, though that’s kind of weird.

Palczynski: Var next_p = $’p.yes:visible’, ‘pdata-s=”‘$first_p_data'”‘.eq1 also – this isn’t how you concat strings.

Swearinger: But just select off the next element with .yes

Beaushaw: Mattila: yes, i want the next sibling given i have the first one

Novitske: Or use another cl*** on those elements.

Brammell: Robertmaxrees: can i get to the next element without looping through?

Mattila: You want the next one? to find out what’s next?

Leban: Robertmaxrees: .next jQuery API Do***entation →

Angis: Robertmaxrees: .next jQuery API Do***entation →

Hevrin: Http://

Vanruiten: Robertmaxrees: another problem :

Amber: Http:// what if tis like this? wouldn’t .next get the div after p ?

Nardini: And there’s that invalid markup again.

Herkel: You’d need to use .closest and then .filter from there.

Quider: Well, .closest with recursive .next calls ’till you get what you want.

Bekker: Robertmaxrees: so i still have to loop around

Kretzinger: There is no more direct way to get to it/

Goddard: Perhaps i’ll use xpath for this one then

Mattila: With that last structure you have to extract yourself from the parent to then find it’s sibling to find the nested element you want

Dutcher: HowardwLo this looks like crufty markup.