Hi All,
This seems to be defeating me at the moment but I don't think I can be a million miles away.
Basically I have a Age Verification form which just shows the year unless it's the year in which the day month would also affect the user meeting the age restriction, (in this case 1992 for 18) - in which case the day/month selects would also appear (fadeIn).
So here's the code I have:
$(document).ready(function(){
$('#dateob').hide(); //hide the div containing the month and day selects
$("#f_yob").change(function() {
//select change function - if the value is greater than 1992 show the other select boxes
if ("$('#f_yob').attr('value')>1992") {
$('#dateob').fadeIn('slow');
}
//otherwise hide the day/month selects
else {
$('#dateob').fadeOut('slow');
}
});
});
If anyone is able to tell me where I'm going wrong I'd really appreciate it!
Andy