Hi people
I have a drop down list box and I want to disable 2 items in it. For example
Now showstatus is a String variable that is calculated earlier. Consider that showstatus has the following value
showstatus = "Approved Denied Waiting". The above code shows all 3 of them. Now what I want to do is that I would like to disable "denied", so that "denied" does exist in the list but cannot be selected by the user.
Can anyone suggest a way of doing this. What I have tried is a "replace" function in java in which I replaced denied with "", but this way it keeps a blank row in the list box, I dont like this. I would like to see "denied" in the list but I want to make it disabled so that it cannot be selected.
Any suggestions will be highly appreciated.
Thanks
I have a drop down list box and I want to disable 2 items in it. For example
Code:
<select name = "liststatus">
<%= showstatus %>
>
Now showstatus is a String variable that is calculated earlier. Consider that showstatus has the following value
showstatus = "Approved Denied Waiting". The above code shows all 3 of them. Now what I want to do is that I would like to disable "denied", so that "denied" does exist in the list but cannot be selected by the user.
Can anyone suggest a way of doing this. What I have tried is a "replace" function in java in which I replaced denied with "", but this way it keeps a blank row in the list box, I dont like this. I would like to see "denied" in the list but I want to make it disabled so that it cannot be selected.
Any suggestions will be highly appreciated.
Thanks