O'Reilly logo

Joomla! 1.5 JavaScript jQuery by Jose Argudo Blanco

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

Going back to the admin zone

Now, back in the admin zone we can add some interesting features to make the component admin zone easier to use.

Adding tips and instructions to fill our form using JavaScript

Adding tips and instructions may not seem so important in our component, as we only have two fields: one for the title and the other for the text. But in many forms out there, some help may be very useful while filling the form.

We are going to add some notes inside these two fields for users to see what they must write. Usually, we will do that more or less as follows:

<input class="text_area" type="text" name="title" id="title" value="Sample text here" size="40"/>
            

However, we would face some problems if we were to use this approach. For example, ...

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