Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display result is reverted back (JSP and JQuery)

Yashwant Palkar
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP i have label and Edit button. once I click on Edit button the label should hide and text box should appear instead of label. As well as Textbox should have value same as Label.I have used JQuery for implementing this. my code is as follows

and JSP code is as follows

The result of this code is fine but it reverts backthe result.It shows label again and Text box dispappears.

I tried same JQuery code in HTML it woked fine.
Can anybody help me in this??
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic