Set cursor in textbox on button click in SharePoint using jQuery

Advertisement
In this article we are able to see how to move cursor in to textbox on button click.
We are having a textbox with title “Name” for that textbox and a button with value “Chose Name”
We are having so many fields in the New Form and Edit Form, we placed a button to move the cursor to particular column while clicking on the button.

<html>
<input  type='button' onclick='selectperson()'  value='Choose Name />
</html>

<script>
function selectperson ()
{
$('input[title^="Name"]').focus();
}
</script>

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM
Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment