Solarpitch Posted September 17, 2010 Share Posted September 17, 2010 hey guys, im using the modal window facebox that displays a simple popup modal window. I have 4 textfields on my webpage and when I click on submit, a link or button.. doesnt really matter.. I want the modal to display with the contents of whats in the textfields. Just wondering how I can do this. It's pretty much taken the content from a textfield and display them in a dive on the page when a link is pressed. Link to comment https://forums.phpfreaks.com/topic/213651-populating-an-modal-popup-with-info-from-textfields-on-same-page/ Share on other sites More sharing options...
iainwood Posted September 17, 2010 Share Posted September 17, 2010 Hi onclick="showText(idoftextboxwithtextin, idofdivforcontenttogointo)" function showText(myid,mydiv){ document.getElementByID(mydiv).innerHTML=document.getElementByID(myid).value } this do it for you? Link to comment https://forums.phpfreaks.com/topic/213651-populating-an-modal-popup-with-info-from-textfields-on-same-page/#findComment-1112036 Share on other sites More sharing options...
Adam Posted September 17, 2010 Share Posted September 17, 2010 Can you show the layout of your form and how you're calling Facebox? Link to comment https://forums.phpfreaks.com/topic/213651-populating-an-modal-popup-with-info-from-textfields-on-same-page/#findComment-1112111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.