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, if users write something and then delete it, the note won't appear again. This is something that isn't so important, but wouldn't it be better if the note would appear again if there is no text present in the input? Sure, and that's what we...