javascript - Make my new cloned div as readonly in dialog -


I send div content in jquery after the modifications on the page as a preview of that page in the dialog box Now I want to create a clone diva which is read as a preview in the dialog. how can I do this? Help me

  function call preview () {$ ('# main container'). Clone () AppendTo ('# previewDiv'); Document.getElementById ('previewDiv') = disabled = true $ Fx.speeds._default = 500; $ (Function () ($ ("(#previewDiv") .dialog ({autoOpen: wrong, width: 600, height: 800, auto close: false, show: "fold", hide: "core", again : $ ("#previewDiv") .dialog ("open"); return false;});})} <$ ("#previewDiv"): $ ("#previewBtn"). / Code>   

If read only means that there is no input from the user, but then Also, select and copy the user text, you have to read in the div for each 'input' element, Attribute ('readable', true);

Comments