benji87 Posted March 8, 2007 Share Posted March 8, 2007 Hi all im working on a script in php but what im wanting to do is enable some text boxes using javascript based on the user ticking a tick box. So therefore preventing them filling in values into 2 text boxes without one being ticked......thanks Quote Link to comment Share on other sites More sharing options...
fenway Posted March 8, 2007 Share Posted March 8, 2007 Well, you can actually disable the other elements based onthe checkbxo. Quote Link to comment Share on other sites More sharing options...
benji87 Posted March 8, 2007 Author Share Posted March 8, 2007 Is that meant to be can or cant? If you can how is it possible? Quote Link to comment Share on other sites More sharing options...
fenway Posted March 8, 2007 Share Posted March 8, 2007 In the onclick event handler for your checkbox, use the checked state to set the disabled attribute of the remaining input elements. 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.