New answers tagged

0

After much trial and error I finally figured it out. For whatever reason it only worked when the file was saved as .html and linked through the CEWP, but the key was to include ALL the HTML code starting from !doctype html, html, meta, etc. As for the .css I added that in a script editor with tags and everything worked as it should.


0

You should use ID in the HTML elements. Example first content editor <input type="button" onclick="SetSecondC();" values="Click" /> function SetSecondC() { document.getElementById('txtSecond').value = "Message"; } second content editor <input type="text" id="txtSecond" />


0

Its not needed to use two CEWP, you can achieve it in a single CEWP itself. After your html textbox and buttons add a 'div' tag as below. <div id="displayresults" /> On click event of your button, call a JavaScript function that will your results to the div like below, var resultdiv = $("#displayresults"); var resultTable="<Your results in html ...


0

If you add the above css to the script editor web part, the :checked css property gets stripped out. If you reference the CSS from an external file, it will work.


0

Couple of things you can do Use SharePoint Designer and the Edit file directly instead of upload. Use Script Editor Web Part and give it a go.



Top 50 recent answers are included