Jul 14, 2009, 6:35 AM
Show/Hide on TextField with note doesn't affect note
When using an ext tag as per below:
Expected Behaviour: The note should show/hide as appropriate.
Workaround:
<ext:TextField runat="server id="MyTextField" Note="My Note">
Actual Behaviour: Using the javascript show()/hide() functions doesn't show/hide the text of the note.Expected Behaviour: The note should show/hide as appropriate.
Workaround:
function showHideWithNote(fieldWithNote, show)
{
var note = fieldWithNote.el.dom.parentElement.children[1];
if (show)
{
fieldWithNote.show();
note.style.display = 'block';
}
else
{
fieldWithNote.hide();
note.style.display = 'none';
}
}