Get selected items from Listview control?


Badge +8

Is there anyway to get the selected items in a listview control using javascript?


4 replies

Userlevel 5
Badge +14

try

NWF$('.LVCtrl .s4-itm-cbx:checked')

LVCtrl is your custom CSS class assigned to listview control

Badge +8

That's great but how do I get a handle to the items?    Would I just need to parse the text in the view?   Or is there a better way?

Userlevel 5
Badge +14

What do you mean with "handle"?

you will need to  parse data out of DOM

Userlevel 5
Badge +14

Hi ‌, did you succeed with this?

Reply