How to get end time using jquery
<p><a href="http://jsbin.com/akuber/1/edit" rel="nofollow"><strong>Demo</strong></a> Here in jsbin demo i m getting start time but i dnt know any idea how to get end time.
 how should i go further to get end time.
<strong>i dont want to change html.</strong> 
i have to get end time using  present html.
i m trying since last three days. </p>

<pre><code>$("#btnAllot").click(function ()
            { var calculateStartMins = $('td.csstd:first');var calculateStartHrs = calculateStartMins.parent().prevAll().andSelf().find('td:first-child').filter(function(){return $.trim($(this).text()) !== '';}).last();
                    var fromTime = calculateStartHrs.text().trim() + calculateStartMins.text().trim();
                    var fromTimeAMPM = fromTime.substring(5, 7);
                    var fromTimeHour = fromTime.trim().substring(0, 2);
                    var fromTimeMinute = fromTime.substring(7, 10);
                    var hidFromTime = fromTimeHour.trim() +":"+ fromTimeMinute.trim();alert("Start Time is "+hidFromTime.trim()); 
             var endTime = $('td.csstd:last').parent().next().andSelf().find('td:first-child').
                filter(function ()
                {return $.trim($(this).text()) !== '';
               }).last();alert("End Time is "+endTime);
            });   
</code></pre>
