Android Question get element by id 4 check box

ArminKH

Well-Known Member
hi
i want to change a check box value to checked on a web site by using webviewextras and javascript(get element by id)

here is my code but this way not worked 4 me

B4X:
JavaScript.executeJavascript(WebView1,"document.getElementById('ddcl-CPCM_CPC_SelectMainUni2_selectmainuni_ckblistStateD_lstItemList-i0').checked=true;")

i test above code and change many times the code

and here is the check box source on site(this check boxes is in a multi selectable list)
B4X:
<input disabled="" value="1" index="0" id="ddcl-CPCM_CPC_SelectMainUni2_selectmainuni_ckblistStateD_lstItemList-i0" class="active" tabindex="0" type="checkbox">

this checkbox has not any other event like onchange or onclick ,...

please correct me thanx to all
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top