Hi!
We have some custom jQuery in a Content Editor on our NewForm.aspx page for a SharePoint 2010 list:
<script src=".../jquery.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function(){
window.setTimeout(readyCall, 1000);
}
function readyCall(){
var piddata = localStorage.getItem('myPID');
$("#ctl00_m...TextField").focus();
$("#ctl00_m..._TextField").val(piddata);
}</script>
It's working as expected and auto-populating our field, but the top ribbon (especially the Attach File) in the ribbon is now disabled. As soon as I take that section out via SharePoint Designer, the top ribbon is enabled again.
Looking at that ribbon section in Firebug, I can see many attributes of: unselectable="on"
Please advise how we can turn the ribbon back on.