简体   繁体   中英

Inserting javascript into sharepoint editform.aspx

I want to customize my sharepoint datepicker to prevent user from selecting past date. I have found the following code on this website

$(function () {
            $("<%=TextBox1.ClientID %>").datepicker(
            {
             minDate: +0,
            });
        });

but I am not sure where to insert this script. From what research I've done, it needs to be inserted in editform.aspx. I do not know where in the current script to place it, at the end of whats already there? I found I could not paste when I tried to paste it to the end. I am a complete novice at coding so any help would be greatly appreciated. I use SharePoint Designer 2010 and Workspace 2010.

Thanks

you can use content editor web part to insert javascript. see this link you can google content editor webpart for more examples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM