PDA

View Full Version : only numeric entry in a combobox


yazzam
06-20-2006, 12:45 AM
hi,
to make the editable text of my combobox accept only numerci entries I have set the attribute pattern of the lzInputText dirrectly from the basecombobox class like this:

<combobox id="cbxQte" width="60" editable="true">
<method event="oninit">
this.interior.cbtext.setAttribute('pattern', [0-9]*");
</method>

is there another way for getting the this result.

thanks, and sorry for my bad english

--
Younes AZZAM