my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes greyed buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "greyed buttons" Watch "greyed buttons" New topic

greyed buttons

phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251

I have jsp page first.jsp which has got radio buttons
1.ALL 2.WEB so on.

If I select ALL and say submit it calls second.jsp page.

on the second.jsp page I have buttons as quater, month, year so on.

If I select ALL on the first.jsp page and say submit which calls second.jsp page the buttons on the second.jsp page quater should be active other buttons month and year should be greyed out.

How would I do it? Can anyone please help me with examples.

thanks a lot
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

The "disabled" attribute will disable an HTML widget.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: greyed buttons
It's not a secret anymore!