Suchy Posted March 27, 2008 Share Posted March 27, 2008 I have couple of check boxes on one page. What I want is that when someone clicks "other" a text input filed shows up. How can I do this? Link to comment https://forums.phpfreaks.com/topic/98198-additional-input-on-checkbox-press/ Share on other sites More sharing options...
rhodesa Posted March 27, 2008 Share Posted March 27, 2008 <input type="checkbox" name="other" onclick="document.getElementById('other_text').style.display=this.checked?'':'none';" /> <input type="text" id="other_text" name="other_text" style="display:none;" /> Link to comment https://forums.phpfreaks.com/topic/98198-additional-input-on-checkbox-press/#findComment-502545 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.