How can i get Text Box Id in SharePoint NewForm.aspx ? Using Js-Link . . i want to bind Color-picker Control of Jquery to Text-box ..
Can anyone have an idea about this? kindly give me suggestion. Thanks in advance.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityHow can i get Text Box Id in SharePoint NewForm.aspx ? Using Js-Link . . i want to bind Color-picker Control of Jquery to Text-box ..
Can anyone have an idea about this? kindly give me suggestion. Thanks in advance.
@Dipen If your field internal name is text_colorpicker
then you can get the textbox by the following
$('[title="text_colorpicker"]')
You will find textbox of any field by internal name of column in list. Like if your internal name of column is like 'text_colorpicker' then textbox will be generate with id = "text_colorpicker" in NewForm.aspx which is sharepoint's inbuilt functionality..
Then you can easily access that textbox i.e.
$('[id$="text_colorpicker"]')
But if you have applied JSLink on that field then you have to create your own control by yourself by calling function and returning HTML to render on page.
Hope you will get idea.
I have resolved this issue and implement successfully.