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 Quote Link to comment 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" Quote Link to comment Share on other sites More sharing options...
jspodisus Posted March 17, 2010 Author Share Posted March 17, 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" Thanks for response. let me try your mentioned tool. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.