hasanatkazmi Posted December 29, 2007 Share Posted December 29, 2007 I have a textbox, user writes in something including + and - signs, when he clicks on - all text next to that part ontracts/collapses ....... i.e. I am supposed to make user input as active object. But how to ? any ideas please Link to comment https://forums.phpfreaks.com/topic/83564-clickable-object-inside-a-text-box/ Share on other sites More sharing options...
simcoweb Posted December 29, 2007 Share Posted December 29, 2007 Sounds like Ajax to me. Link to comment https://forums.phpfreaks.com/topic/83564-clickable-object-inside-a-text-box/#findComment-425154 Share on other sites More sharing options...
hasanatkazmi Posted December 29, 2007 Author Share Posted December 29, 2007 i too think so, but how to start.... any ideas Link to comment https://forums.phpfreaks.com/topic/83564-clickable-object-inside-a-text-box/#findComment-425206 Share on other sites More sharing options...
nuxy Posted December 29, 2007 Share Posted December 29, 2007 The disapearing act: <script> function hide(id) { obj = document.getElementById(id); obj.style.display = "none"; } </script> <a onclick="javascript:hide('content')">-</a> <div id="content"><input type="text"></div> If you actually want do do somethign with the text that the user inputs, eg. send to a php to get a result, then it is ajax. But I think I missed your point completeley. Link to comment https://forums.phpfreaks.com/topic/83564-clickable-object-inside-a-text-box/#findComment-425226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.