Javascript select all text in field upon clicking
hello all,
im using adobe acrobat standard dc
i have been trying figure out day , have deadline approaching.
i have little knowledge in writing javascript rather clueless.
i trying figure out script run allows form boxes highlight text in upon clicking box. currectly ever click drops cursor, in middle of text string.
i need happen text fields i'm looking not have input name of field every single box.
after digging online found this, im not sure work me.
<script type="text/javascript"> function selectall(id)
{
document.getelementbyid(id).focus(); document.getelementbyid(id).select();
}
any appreciated.
that code designed work html form , won't work pdf form.
i think best can field in pdf following in mouse enter event:
// mouse enter script text field
event.target.setfocus();
selecting of text side-effect of using setfocus method. suggested results in non-standard behavior, might ok needs.
More discussions in JavaScript
adobe
Comments
Post a Comment