This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In one of my jsp page, i am iterating some values with Multibox. As part of requirement, i need to populate the selected multibox value in another text box. Also the value needs to be removed from the text box when the corresponding multibox is unchecked.
I was able to make the first part(populate the value when a multibox is selected) working with the help of onclick JS function. But i couldn't make the second part work properly. I tried using hidden variable, JS array, but i could not get the value when a multibox is unchecked.
I want to know is there a way to get the value when a multi box unchecked.
Is it resolved? If not, just a thought, to check or uncheck the multibox there is "onclick" action. why is it not possible to refresh the destination/selected list on every onclick action.
Have Fun with Java
little,little.. little by little makes a lot..
Joined: Nov 30, 2007
Thanks for your post.
Already i tried this onclick action. As far as i know, the one option to get the selected value is iterate all the multibox and check is it selected, if <Multibox>.checked==true read the value. The below is the js function i used to read the Multibox value. This is working fine when the mutibox is selected. But when the Multi box is delected i couldn't get the value as the current deselected box fail for the .checked==true condition.