I have a page with some inline javascript in it
<script type="text/javascript">
$('#clipboardContainer').hide();
$( '#clipboard' ).click(function() {
$("#clipboardContainer").toggle( "slide", {direction: "up", mode: "hide"}, "slow" );
$("#reportsContainer").toggle();
if ($("#clipboard").html() == 'Open Clipboard')
$("#clipboard").html('Close Clipboard');
else
$("#clipboard").html("Open Clipboard");
});
$('#prev').click(function() {
$.ajax({
type: "GET",
url: "/teams/change_date",
data: {
'id': '<%= @team.id %>',
'date': '<%= @date - 1.day %>'
}
});
});
$('#next').click(function() {
$.ajax({
type: "GET",
url: "/teams/change_date",
data: {
'id': '<%= @team.id %>',
'date': '<%= @date + 1.day %>'
}
});
});
</script>
After an ajax call, I want to modify the 'date' attributes using Jquery. How do I reference the javascript functions using the DOM?
<script>contents, it's just character data. Even if there was, it wouldn't affect the run-time in-memory objects.datean unix timestamp or some form of representation?