I want a submit button that echoes out something below
So when i click on the submit button nothing happends exept a word apears undernieth the button (i want it to be an echo fuction)
PLEASE HELP ME BY GIVING ME THE CODE!
I want a submit button that echoes out something below
So when i click on the submit button nothing happends exept a word apears undernieth the button (i want it to be an echo fuction)
PLEASE HELP ME BY GIVING ME THE CODE!
Thread moved to ClientSide Technologies forum (since this has nothing to do with PHP).
tobymac;10999358 wrote:I want a submit button that echoes out something below
What does "below" mean? Regardless, one method might be to create an empty <div> at the appropriate location, give it a unique ID, and then use something like:
onclick="document.getElementById('myDiv').innerHTML = 'something'"
on the <button>/<input>/? element (whatever your "submit button" is).
I just want 2 buttons, when i click 1 button it shows a form below the button (or wherever i want it) when i click button 2, i want the first form to hide and the second to show.
Are you using jQuery? If not, have you considered it? The reason I ask is because it would be as simple as wrapping both forms in two separate (hidden) divs, giving both divs unique IDs, and then doing something like:
$('#div1').show(); $div('#div2').hide()
for the 'onclick' handler of button 1, and the opposite show/hide behavior for button 2.
that makes sence, thanks! could you possibly post the entire code? i am somewhat amatureish. i would greatly appreciate the full code.