im working on my code, its work’s but the action (insert of css) is to late in the actions.
jQuery(document).ready(function() {
jQuery("#cal2tozindex").click(function() {
jQuery("#cal2tozindex").css('z-index','1000');
jQuery("#cal3tozindex").css('z-index','1');
});
jQuery("#cal3tozindex").click(function() {
jQuery("#cal3tozindex").css('z-index','1000');
jQuery("#cal2tozindex").css('z-index','1');
});
});
There is the url, you can go on your right in the section, and click on the bleu button with a plane on it named ‘vols’.
http://www.voyagesendirect.me/multisites/esther/
What I want :
When you click on the first field : ‘date de départ’ (cal2tozindex) he
should became with a z-index:1000; and the other field : ‘date de
retour’ (cal3tozindex) should be with z-index:1;Same patern with you click on the second field.
My actual problem :
The insert of css is to late, the javascript put the css, after you click on a date, and not when you click on the field first. I really need that the code work’s on the first click (on the field) and not on the second one (on a date).
Thanks to everybody to helping me solving this problem !
});