seventheyejosh Posted March 10, 2009 Share Posted March 10, 2009 Hello All, i was just wondering what the quickest most unobtrusive way would be to lock/ unlock a text input and a drop down based on a radio button. basically its like this O ||dropdown|| O ||textbox|| so if someone checks one or the other it'll grey one or the other out. or it could hide it or show it. right now i have it toggle a div underneath to show one or the other like so choose: O -option A- O -Option B- <div> ||Drop Down|| </div> <div> ||TextBox|| </div> Which works fine, but isnt very stream lined. Any suggestions? Thanks in advance! Also I'm writing this in php. Thanks Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 10, 2009 Share Posted March 10, 2009 you could try greying it out http://www.hunlock.com/blogs/Snippets:_Howto_Grey-Out_The_Screen Quote Link to comment Share on other sites More sharing options...
seventheyejosh Posted March 10, 2009 Author Share Posted March 10, 2009 awesome thanks! 1 more question tho... .... what is the command to get the name of a radio? will document.getElementById work? or do i have to add .value? and will that work? or no? Thanks Much! Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 10, 2009 Share Posted March 10, 2009 http://www.ozzu.com/website-design-forum/gray-out-t89136.html heres a good one using a select dropdown. sure it could be modded for a radio button Quote Link to comment Share on other sites More sharing options...
seventheyejosh Posted March 10, 2009 Author Share Posted March 10, 2009 Thanks man. Will mark as solved 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.