javascript - Set form value for hidden page name -


I am trying to set an html "form value" when a new document is selected in the tinyMCE editor

My Editors Static HTML page template I have the value of:

   

When a new new document is selected, then the "PageName" value is set as a "new webpage"

IE: & Lt; Input type = "hidden" id = "PageName" name = "PageName" value = "NewWebpage" & gt;

I have but do not work here

  mceNewDocument: function () {editor.setContent (''); . Document.getElementById ('see page name') value = NewWebpage; // & lt; - New call},  

OK I fixed it with:

  document.getElementById ('PageName'). Value = "NewWebpage";  

Just added points and it worked.


Comments