PHP Hiding a button

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jrdc2
Forum Newbie
Posts: 1
Joined: Sun Jul 22, 2012 4:33 am

PHP Hiding a button

Post by jrdc2 »

Im trying to hide the Signup button after the user clicking it. and also to login button i want to hide the login button after cliking it and logging in. Please help me :(

<input type='button' value='SIGN-UP' onClick="window.location.href='Shops_registration.htm'" >
<input type="button" value="LOG-IN" onClick="window.location.href='Shops_login2.htm'">
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: PHP Hiding a button

Post by social_experiment »

You need to use javascript for this; Give the buttons a id value and the use a bit of jQuery

Code: Select all

 // untested but should convey the idea
 $('input#idValue').click(function(){
    $('input#idValue').fadeOut();
 });
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply