jspodisus Posted March 9, 2010 Share Posted March 9, 2010 hi, I am implementing a email page.The requirement is: when the user clicks on send button widout filling a field then the the lable before the text box should turn red and a asterix should appear. How should i go about it .Please help Link to comment https://forums.phpfreaks.com/topic/194633-how-to-implement-validation-check-at-runtime/ Share on other sites More sharing options...
XeNoMoRpH1030 Posted March 10, 2010 Share Posted March 10, 2010 The easiest way would be to use a JavaScript library such as MooTools. There are then plugins that you can find that will do exactly what you want. That will potentially add more overhead though as that library is capable of doing much more then just that. One quick suggestion though if you haven't already, if a field is required, you shouldn't wait for the user to click "Send", but already show that it is a required field by using an asterisk and of course saying "* Required Field" Link to comment https://forums.phpfreaks.com/topic/194633-how-to-implement-validation-check-at-runtime/#findComment-1024331 Share on other sites More sharing options...
jspodisus Posted March 17, 2010 Author Share Posted March 17, 2010 Quote The easiest way would be to use a JavaScript library such as MooTools. There are then plugins that you can find that will do exactly what you want. That will potentially add more overhead though as that library is capable of doing much more then just that. One quick suggestion though if you haven't already, if a field is required, you shouldn't wait for the user to click "Send", but already show that it is a required field by using an asterisk and of course saying "* Required Field" Thanks for response. let me try your mentioned tool. Link to comment https://forums.phpfreaks.com/topic/194633-how-to-implement-validation-check-at-runtime/#findComment-1027461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.