Hey guys. I have a website I need to fill out my personal info on. I have the following script to add my info into text fields:
I have to select my gender by clicking "male"
I don't know the Javascript code to do so. I posted the source code from the page below if it helps anyone. Thanks so much.
Code:
set firstName to "Your Name"
tell application "Safari"
do JavaScript "document.getElementsByName('fvFirst')[0].value='" & firstName & "';" in document 1
end tell
I have to select my gender by clicking "male"
I don't know the Javascript code to do so. I posted the source code from the page below if it helps anyone. Thanks so much.
Code:
<h6>Gender</h6>
<input type="radio" value="m" name="fvGender"/>
<label class="radio">Male</label>
<input type="radio" value="f" name="fvGender"/>
<label class="radio">Female</label>
</div>
</div>