Android Question get element by id 4 check box

Discussion in 'Android Questions' started by ArminKH, Jun 23, 2015.

  1. ArminKH

    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

    Code:
    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)
    Code:
    <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
     
  2. AndOrNot

    AndOrNot Well-Known Member Licensed User

    Have you resolved the problem?
     
  3. ArminKH

    ArminKH Well-Known Member

    Yes
     
    DonManfred likes this.
  4. DonManfred

    DonManfred Expert Licensed User

    You´re funny! :D

    I think what @AndOrNot expected was that you post the solution :)
     
    lemonisdead and ArminKH like this.
  5. ArminKH

    ArminKH Well-Known Member

    no :D because this is depend on the text boxes in a form :D
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice