O'Reilly logo

jQuery 1.3 with PHP by Kae Verens

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

Using special codes to define tabs

Using an <h3> element to define a break in a tab or accordion is fine for simple CMS forms, but it's not very flexible. What if you want to do both?

One solution is to create some text codes for tabs. These codes would be unique to tabs and should not be confused with anything else.

Note that these are custom text codes created by you. They need to be unique to your application, and should not confuse the browser into trying to render them as, say, CSS or HTML.

See the following image for a visual explanation of how the codes will be used:

Using special codes to define tabs

I've included an example above. Notice how the {{TABPAGE}} code is used to ...

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