| Author |
JQuery not working
|
sumanth makkapati
Greenhorn
Joined: Apr 06, 2010
Posts: 3
|
|
Hi,
I've just started learning Jquery & JSP. I just wrote my first Hello World program in JSP but the JQuery isn't responding. Please help me
Thank You
|
 |
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
|
posted

0
|
Actually, your code is most likely working perfectly--but what's the first thing you're doing with jQuery after the page has loaded?
(Hint: $('div').hide())
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56201
|
|
Also a couple of things that must be mentioned:
<script> not <Script>Modern code should not be using JSP scriptlets. Learn the modern EL.
Following up in David's post, how do you know it's "not working"?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
sumanth makkapati
Greenhorn
Joined: Apr 06, 2010
Posts: 3
|
|
I'm hiding the div when the page loads and when the link is clicked the div visibility toggles.
For some mysterious reasons the code is working than you guys for your suggestions.
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
sumanth makkapati wrote:I'm hiding the div when the page loads and when the link is clicked the div visibility toggles.
For some mysterious reasons the code is working than you guys for your suggestions.
It makes no sense that it would be working, unless you have changed your code...
If you hide the div, it will hide the anchor. So how could you possibly click on it to unhide it?
|
 |
sumanth makkapati
Greenhorn
Joined: Apr 06, 2010
Posts: 3
|
|
yeah I forgot to mention, I've excluded the anchor tag from the div
Thank you
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
sumanth makkapati wrote:yeah I forgot to mention, I've excluded the anchor tag from the div
Thank you
|
 |
 |
|
|
subject: JQuery not working
|
|
|