javascript - Python Mechanize: selecting an option -
how select option select tag?
this form contains 1 select tag , no submit button. when option selected, supposed call javascript function __dopostback('d1','') adds more content same page.
<select name="d1" onchange="__dopostback('d1','')" language="javascript" id="d1"> <option value="0">- select -</option> <option value="1">option1</option> <option value="3">option2</option> <option value="5">option3</option> </select>
although don't have experience mechanize, believe should this:
control = form.find_control('d1') control.value = ['3']
Comments
Post a Comment