lostdreamer

msg:4336364 | 2:25 pm on Jul 7, 2011 (gmt 0) |
<script> $(document).ready(function() { $("#grpinputString").select(); }); </script>
Should work, it should put the cursor in an input field with the ID "grpinputString" when the page loads.... What you where doing was binding a function to the focus EVENT (ie. when someone puts his/her cursor in the input field, it would call ' $("#grpinputString").select(); '
|
jaruba

msg:4336380 | 2:41 pm on Jul 7, 2011 (gmt 0) |
That worked, but it only works if I load the individual page. On my site I load this page in an iframe with a jquery lightbox plugin. When the plugin loads it, it still doesn't select the field. Is there any reason why this is happening or a workaround for it?
|
jaruba

msg:4336401 | 3:18 pm on Jul 7, 2011 (gmt 0) |
Got it to work, apparently I needed to focus the input field before selecting it for it to work in an iframe. Thank you for all the help.
|
|