| Author |
span tag issue in javascript
|
pramod talekar
Ranch Hand
Joined: Apr 26, 2010
Posts: 316
|
|
Hello,
Below is my code :
If I write instead of
then as soon as I fill in "message" field , I get Alert "Hi" which is right , but after that all other fields(e.g. zip, phone) get vanished.
Is this how <span> tag should be written ?
Please advise.
This is the code :-
|
Thanks,
Pramod
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Span elements do not have an empty tag notation, so it should be <span></span>
On a side note: you should be using label elements
Eric
|
 |
pramod talekar
Ranch Hand
Joined: Apr 26, 2010
Posts: 316
|
|
Thanks Eric for your advice.
I'll look for more details on label elements.
Thanks for improvement.
|
 |
 |
|
|
subject: span tag issue in javascript
|
|
|