O'Reilly logo

Instant Lift Web Applications How-to by Torsten Uhlmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CSS selector bindings (Simple)

Now that you have templates on one side and snippets on the other, you need to combine the two. There needs to be some special sauce that lets you glue backend data with frontend pages. CSS selectors are this special sauce. They provide a well-known syntax to select parts of the template and bind them to values or form elements in the backend.

Getting ready

In the previous recipes you have already seen CSS selectors. You probably wondered about some strange syntax coming your way. Now is the time to explain these constructs in more detail.

We won't go into all the possible details; we will show you the most widely used cases and give you pointers where you can learn more.

How to do it...

If you know jQuery, you already ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required