Hi i have a registration form .. somewhere in my form i have an image(registration is written) btw div tag:
<div id="test"> <img src="..."/></div>
<label>username:</label>
.......
....
...
<div><label onclick=Onchange(1)>Login</label></div>
Now i have an option :login" on this form if user has already registered. When click on "login" the image login should be visible (on top) and the image registration should disapear.
The code below is with text and it works. but when i change it to image, it does not work. That is login and registration is written in the form of an image.
function Onchange(num){
if (num == 1) {
$('#test').html("Login");
curnum = 1;}
else{
$('#test').html("Registration");
curnum = 2;}
}
Anyone can help?