Pergunta

I have the following short code to create a div when button is clicked, inside the div is a span tag with contenteditable="false". When span is doubled clicked, it should set and change the contenteditable attribute from false to true, so text can be made editable on dblclick. Check the example at http://jsfiddle.net/dtxhe/

This is working in firefox, chrome and ie8, but not IE7 or quirks mode. Any ideas. How can i fix this.

Foi útil?

Solução

In case you hadn't already figured this one out the answer I believe is the difference between "contenteditable" and "contentEditable" for the attribute name. IE7 is picky.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top