I'm trying to access all inputs with the following class:
validate['number']
Of course sometimes some of them are:
validate['required', 'number']
So I need all that have number there. This is part of a Chronoform system that makes these classes.
I have tried this, figured if it worked I would go from there and make it work for all that even had required or alpha.
jQuery(document).ready(function() {
jQuery(".validate['number']").change(function() {
if(this.value <= '') {
this.value = '0';
}
});
});
But no go, it won't find them. So how do I find classes like this and their sub parts? I don't even know what to call these kinds of classes since I've never seen them before.