-
FEATURED COMPONENTS
First time here? Check out the FAQ!
name.constraint = (Constraint) null;
here name is an id of textbox and it has constraint ="no empty" . but if i want to clear the text box through clear button , it is showing error....
how can i clear the text box if text box havind constraint="no empty".
plz help me in this......
Hi,
Please try following example,
<textbox id="tbx" constraint="no empty"/> <button label="clear"> <attribute name="onClick"> tbx.setRawValue(null); tbx.clearErrorMessage(); //hide 'no empty' warning </attribute> </button>
Asked: 2009-05-15 06:39:35 +0800
Seen: 401 times
Last updated: Dec 10 '09