Rank: Newbie Groups: Member
Joined: 3/21/2015 Posts: 8
|
Hi
Here is my combo
<select name="ctl00$MainContent$CldFecha$DdlAnio" id="DdlAnio" class="calendarCombo2" onchange="ValidateYear();" style="width: 80px; display: none;" sb="48324249"> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option selected="selected" value="2015">2015</option>
</select>
I'am trying to set value this way
webView1.EvalScript("document.getElementsByName('ctl00$MainContent$CldFecha$DdlAnio')[0].value = '2014';"); webView1.EvalScript("document.getElementsByName('ctl00$MainContent$CldFecha$DdlAnio').change();");
but don't work
whats wrong?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This usually is because you have some problem with your JavaScript code. You can try to run the same script you are trying to run in Google Chrome's developer tool script console, or you can use our TabbedBrowser console feature and it should help you find out if there is any problem with your script code. We are not in a position to debug your JavaScript code for you.
Thanks!
|