EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
December 10, 2025, 01:46:49 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
datebox validate
Pages: [
1
]
« previous
next »
Print
Author
Topic: datebox validate (Read 7607 times)
jaimi
Full Member
Posts: 121
datebox validate
«
on:
November 07, 2014, 01:42:50 AM »
I'd like to check the content of a datebox at keyup-level.
So far I came to this (but it's not wrking):
$.extend($.fn.validatebox.defaults.rules, {
md: {
validator: function(value, param){
var d2 = $.fn.datebox.defaults.parser(value);
return d2 == d2.match(/\d+/);
},
message: 'Geben Sie ein gültiges Format (TT.MM.JJJJ) ein.'
}
});
$('#HOM_GEBURTSDATUM').datebox({
validType: 'md'
});
var tb = $('#HOM_GEBURTSDATUM').datebox('textbox');
tb.add(tb.parent())
.css("background-color","#1a1a1a")
.css("color","#fff");
tb.parent().tooltip({
position: 'right',
content: '<span>Geben Sie das Geburtsdatum des Pferdes ein.</span>'
});
Any suggestions?
thx, jaimi
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...