A simple random bit on var selector

Isobar’s Rob Larsen suggests that there is often a need to build CSS selectors dynamically when building applications. ”This is typically some existing pattern paired with a loop counter or something pulled from a data attribute,” he writes on his blog. His choice is to create a variable called ”selector” and ”to craft the selector on its own line.” This is then passed into jQuery. He shows a simple example.

Source: http://bppro.link/?c=NfJ

No Comments

Leave a Reply

Essential Survival Items
Double Chocolate Malt Cake

Owing to the fact that my brain is a bit dead since finishing my literature review last week, I’ve been struggling to motivate myself to write about this cake. Thus, I’m keeping it super short

Essential Survival Items
The Entrepreneur: Charles Armstrong, The Trampery

A pioneer of creative workspaces, venues and, more recently, housing, Armstrong offers a snapshot into how he’s built a £2m social enterprise…In Business growth stories Source: http://bppro.link/?c=VDP

Essential Survival Items
We can figure this out. Right?

Share and Enjoy:The post We can figure this out. Right? appeared first on Indexed. Source: http://bppro.link/?c=S3H