japerezclick
Forum Replies Created
-
Thank you very much!
Thank you very much, code is amazing, but for reasons I don’t know, it’s not working on clicking tds in calendar.
Hi Niel.
Thanks for your quick answer. The problem it’s quite simple.
In this case you can only select Tuesdays in the calendar (it’s a 3 days course that only starts on Tuesadys).
If I select for example 21/3/23, I have styled td’s of that selected Tuesd and adyacent Wed and Thurs to background red.
But if you advance in time, you can see that, for example, 21/11/23 is also “in red”, as that day is also Tuesday and shares same class with 21/03/23: “xdsoft_current”.
To solve this I am trying to add a specific class (on click a td) to the “selected” td with Javascript, but it doesn’t work:
<script> jQuery(document).ready(function() { $("td.xdsoft_date").click(function(){ $(this).addClass("seleccionado"); }) }); </script>
My questios is: is there a way to “reach” that selected date (in this case 21/03/23) so I can style only period selected?
Thanks.
- This reply was modified 1 year, 8 months ago by japerezclick.
OK, thanks.
OK, I will try that, as I am using DIVI theme.
Thanks!