0

I open My Editform.aspx page with SharePoint Designer and I want to add javascript code to it. This is the code:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("#a").click(function(){
    $("#content").hide();
  });
  $("#b").click(function(){
    $("#content").show();
  });
});
</script>

How can I add and place it to one SharePoint page?

2

1 Answer 1

3

You can add it into the <HEAD></HEAD> tag via SharePoint designer, or I prefer to edit the page via the web UI, and add a Script Web part, HTML Form or Content Editor web part and throw the code in there (each web part has a unique method to adding code)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.