checkboxlist with ALL option in it

checkboxlist with ALL option in it

Hi 
i am new bee
i want to create dynamic checkbox listview in Jquerymobile including ALL option in it 
i have created it but not able to select and unselect all checkboxes after clicking on ALL option

please can anybody give me the  demo