I have the following reqquirement.

I am using a listbox and a checkbox in my Ui page. When I click on the 'SelectAll' checkbox all the items are selected automatically.

Now, when i start selecting the list items individually, the check box must be unselected and when all the items in the list are selected individually, the checkbox should be checked automatically.
Please help. Thanks in advance.