i have this countdown timer
(function($){
var options = {
display_as_text : false,
remaining : 0,
separator : ':',
significant_days : 3,
display_on_complete : null, // id of element to display when countdown is complete
hide_on_complete : null // hide the timer once it hits zero
};
$.fn.countdown = function (config_options)
{
/*
* Initialise
*
* Prepare data and trigger regular execution of code
*
* @param container Reference to DOM element where counter will be displayed
*/
var initialise = function (container){
}
var update = function (seconds_remaining){
}
and i need to access the update and reset the time based on a value i send in but i dont know how to access it. Here is how i instantiate the plugin
$('#timer').countdown({remaining : 1000});
but how do i call the update to update the seconds...I tried to set it to a variable and call it but no go...any ideas