DropKick
DropKick copied to clipboard
Jquery validation not fires because of element is "hidden"
Hi
I have used jquery validation plugin for dropdown required. whenever i will use dropkick for dropdown then original dropdown html rendered with "display:none". because of jquery validation rules is that if element is hidden then validation will not work. how can i solve this issue. please updated code as soon as possible.
Thanks, Hardik
Hi! I have used dropkick, along with jQuery validation too! For validation to work we need to keep the original still
Around lines 150-170 we have the following code:
setTimeout(function () {
$select.hide();
}, 0);
I believe we should remove these lines plugin, since the select is hidden with css.
In CSS we have:
.dk_fouc select {
position: relative;
top: -99999em;
visibility: hidden;
}
What about?
PS: I always remove these lines of javascript manually.