selector problem?

selector problem?

I don't see the problem with this selector:
var selectedid = $("[id^=cccproj][data-selected=='1']").prop("id"); // check id starting with cccproj that has data-selected value of 1

Does it look good to you?