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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -