yami007 Posted March 15, 2009 Share Posted March 15, 2009 well i want to add more entries to a table database via 1 html form but i want to activate and deactivate the second form and so on.. please i need your help Quote Link to comment https://forums.phpfreaks.com/topic/149574-activating-deactivating-an-input/ Share on other sites More sharing options...
yami007 Posted March 16, 2009 Author Share Posted March 16, 2009 sorry if i ddnt say what i really wanted well i only want to know how to activate and deactivate a form via a radio input ( disable it and hide it ) Quote Link to comment https://forums.phpfreaks.com/topic/149574-activating-deactivating-an-input/#findComment-785507 Share on other sites More sharing options...
POG1 Posted March 16, 2009 Share Posted March 16, 2009 have you tried an onClick event for the radio? Quote Link to comment https://forums.phpfreaks.com/topic/149574-activating-deactivating-an-input/#findComment-785516 Share on other sites More sharing options...
yami007 Posted March 18, 2009 Author Share Posted March 18, 2009 onclick? and how i do it? Quote Link to comment https://forums.phpfreaks.com/topic/149574-activating-deactivating-an-input/#findComment-787590 Share on other sites More sharing options...
mark110384 Posted March 18, 2009 Share Posted March 18, 2009 Some thing like onClick="yourjsfunction();" Stick an ID on the table, and set its attributes to hidden using CSS. #your_table{ visibility: hidden; } The JS function function yourjsfunction(){ document.getElementById("your_table").style.visibility = "visible"; } This should point you towards the right direction Quote Link to comment https://forums.phpfreaks.com/topic/149574-activating-deactivating-an-input/#findComment-787616 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.