for my form validation i wrote a function that split the date in 3 pieces. The pieces are split by "\"
So the date looks like "01\01\2013"
here's my function
function check_date() {
                    var input = $('#start_date').val();
                    var lines = input.split('\\');
                    if (lines[0] <= 31) {
                        $('#start_date').css({'border': '1px solid #b0b0b0'});
                    } else {
                        $('#start_date').css({'border': '1px solid red'});
                    } 
                    if (lines[1] <= 12) {
                        $('#start_date').css({'border': '1px solid #b0b0b0'});
                    } else {
                        $('#start_date').css({'border': '1px solid red'});
                    }
                }
but this doesn't work at all...
is there anyone who can help?
Thx :)
 
     
    