Hi,
I want to make a div tag which contains the errors to be displayed when the submit button is clicked.
If the user doesn't enters any value in the textbox i want to show the error message. I have placed the error message in a div tag and made it to be visible=false. After clicking the submit button i want an javascript event to be called to check whether the user has entered the value or not if it is not then make the div tag with the error message to be visible,
I thought of using this with the required field error and text but it doesn't work properly. I want to display the error message in the top when i enter these required field error and text it displays above the form.
I called the javascript function in the are of submit/save javascript. In that for testing purpose i gave the script as
alert($(First_name)); but it shows invalid name First_name. the First_name is the shortname i have used for the textbox then how come it shows an error.
How the javascript function be called when the submit button is clicked.
So plz do help me soon
Thanks in advance