In most cases when a user enters data through a form, we want to ensure that the values entered are valid before the data is, for instance, stored in a database or used to determine the next action.
Form validation is frequently done using client-side Java Script.
This happened on firefox but not on chrome, please how to fix this? Why don't you simply add required to your input fields to stop them from being blank?
way it'll sort this issue out for you and you don't have the horrible alert message involved at all Here's a solution that should support IE8 , but don't have IE8, so I can't confirm.
To see how validation works, run this page and deliberately make mistakes.
I'm trying to validate user input by checking if something has been entered into the textbox. What i want to achieve is, a user gets an alert box that a particular field is empty.
It's good to include them even if your browser doesn't support it as coding to the HTML5 standard will allow your web page to be forward compatible.
Therefore, you also have to make sure that the values that users enter can be correctly converted to the appropriate data types.For details see Using Java Script in Page Flow and Portal Applications.Finally, the ", the form will always be submitted and no data will be posted to the form bean.This approach is also possible in Web Logic Workshop.In addition, server-side validation checks the user input on the server side.