Jack Jack - 2 months ago 25
Vb.net Question

Change check value checkbox form ( Awesomium VB.net)

I tried both, but it won't work. Can anyone help me?

WebControl1.ExecuteJavascript("document.getElementById('#signupForm_confirm_terms').prop('checked'", "true")

WebControl1.ExecuteJavascript("document.getElementById('#signupForm_confirm_terms').attr('checked'", "true")


Thanks in advance :)

Answer

Try:

WebControl1.ExecuteJavascript("document.getElementById('#signupForm_confirm_terms').checked = true;")