By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,651 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,651 IT Pros & Developers. It's quick & easy.

how to change button text dynamically

P: 7
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??
Mar 20 '13 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
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.
Mar 20 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.