Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In a Sharepoint site ,i ve given a checkbox.so using jquery,i ve to hide the fields of edit form by clicking on Checkbox.

Now i am trying to give javascript in contenteditor webpart "SourceEditor".But its not working.Please help me.
Simple alert msg is working.
Posted
Comments
Sandeep Mewara 6-Jun-12 12:03pm    
Elaborate "But its not working."
Stephen Hewison 6-Jun-12 15:39pm    
What's most likely is you're inaccurately targeting the elements. When the page is loaded, press F12. This will start the developer tools and allow you to interrogative the HTML. Find the page components you're interested in hiding within the source control and look for patterns in the name/id convention used in the rendering. Then use these names/ids to target the elements you want to modify.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900