I am creating calendar type control with my html application and i have used table format to achive. In this calendar i have added the date attribute to td elements and my dom will like below
<td date="Tue Aug 30 2016" class="current">30</td>
<td date="Mon Aug 29 2016" class="current">29</td>
I have added the date attributes like this to all dates in that month calendar.
I want to use this date attribute with jQuery selector to retrive that particular td element. Also my date attribute value will get from below code
new Date("11/05/2016").toDateString(); // out will like "Sat Nov 05 2016"
I want select the elements some thing like this
$('.current[date=new Date("11/05/2016").toDateString()]')
// here i have set the 11/05/2016 manually but this will get from local storage variable.
Thanks for any suggestion