how to change button text dynamically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trisha8
    New Member
    • Feb 2013
    • 7

    how to change button text dynamically

    in my JSP page, I want to change text of button dynamically(i.e . after checking some condition) without using JavaScript. Can it be possible??
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Using Javascript is the simplest approach and you can do it without reloading the whole page.
    Without using javascript you'd have to submit the form and reload the page then build the page using JSTL c:if tags to decide which button with which text to display.

    Comment

    Working...