Re: select element can't get focus inside a contentEditable div.
Neil <[email protected]> Sun, 27 Nov 2011 16:00:49 +0000
| Newsgroups | gmane.comp.mozilla.devel.editor |
|---|---|
| Message-ID | <[email protected]> |
akin wrote: >When I write a div with attribute "contentEditable=true', then I put a "<select><option>...</select>" inside this div, but the select element just can not be set focus, so I can't use it to chose a value. It made me feel difficult to design a online medical record editor...., any idea are appreciated. > > This is because the select is editable too! If you want to be able to provide a list of values to embed within editable text, then try setting contenteditable="false" on the select element. -- Warning: May contain traces of nuts.