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 Link to comment https://forums.phpfreaks.com/topic/148693-solved-radio-unlocklock/ 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 Link to comment https://forums.phpfreaks.com/topic/148693-solved-radio-unlocklock/#findComment-780781 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! Link to comment https://forums.phpfreaks.com/topic/148693-solved-radio-unlocklock/#findComment-780783 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 Link to comment https://forums.phpfreaks.com/topic/148693-solved-radio-unlocklock/#findComment-780786 Share on other sites More sharing options...
seventheyejosh Posted March 10, 2009 Author Share Posted March 10, 2009 Thanks man. Will mark as solved Link to comment https://forums.phpfreaks.com/topic/148693-solved-radio-unlocklock/#findComment-780788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.