Show Posts
|
Pages: [1]
|
2
|
General Category / EasyUI for jQuery / Re: datebox validation
|
on: December 17, 2013, 11:57:44 PM
|
Thank you for the reply.
I tried it out that way. My code is as follows
$.extend($.fn.validatebox.defaults.rules, { validDate: { validator: function(value){ var date= $.fn.datebox.defaults.parser(value); alert(isNaN(Date.parse(date))); return !(isNaN(Date.parse(date))); }, message: 'Please enter a valid date.' } });
<input type="text" class="easyui-datebox" validType="validDate"/>
But even if i enter alphabets and tab out, i am not getting the invalid message. This is the same case if i enter a value like 45/89/75 etc. but the alert is coming which i placed inside validator.
Could you please tell, what mistake i have done?
Regards
|
|
|
3
|
General Category / EasyUI for jQuery / datebox validation
|
on: December 17, 2013, 04:21:20 AM
|
Hi All,
This a very basic question in have regarding datebox.
How to validate the datebox value by adding a validator? I wanted to keep the datebox as editable. So I am able to input any values(like aphanumeric etc) to the date field. So using validator i wanted to check whether it is a actual date entered in mm/dd/yyyy format.
Thanks and Regards user
|
|
|
6
|
General Category / EasyUI for jQuery / jeasyui numberbox
|
on: December 15, 2013, 10:00:08 PM
|
Hi Team,
i am new to jquery and jeasyui. i am using easyui-numberbox. i have mentioned the precision as 4. But even though if the value coming from database is 1.25, the value in the ui is getting displayed as 1.2500. Is there any way to avoid this?
Please help me with this.
Thanks user
|
|
|
|