4
How to have the return of the current date via javascript, in the time-label class can use jquery or angular.
The idea is to have the last update date.
If anyone knows I’m grateful.
You cannot enter the direct value, some function has to be created that at runtime add the date..
in an html class:
<div class="footer">
<div class="col-md-12">
<span class="pull-left time-label"></span>
<div class="pull-right">
<a href="#" class="toggle-legend visible-lg pull-left cLineSwap">Legend</a>
</div>
</div>
</div>
You want to give a class to the element that is a date? can give an example of the format you want to have?
– Sergio
Actually @Sergio, I want a function to create depending on the format. just add the current date via jquery or angular. If it helps, I saw something in that sense: $("#"+keyword_idDiv+ " .pull-left.Verizon-widget-time-label"). html("Last Updated: "+ lastUpdated); with jquery
– Edmo
Okay, and where does this date come from? Do you change in HTML? in the script? or come from the database?
– Sergio
Javascript has to generate, or use Angularjs to generate this date. It’s something dynamic.
– Edmo