jquery - Countdown timer get values -


i playing around countdown timer. created input fields values , wrapped jquery in function called on button click.

inside function did this:

var d = document.getelementbyid('#day').value; 

etc.

then in countdown time, instead of number added variable d day not work.

can tell me how have jquery pull in value user input?

here codepen code: http://codepen.io/bskousen/pen/jopveb

it should be

var d = document.getelementbyid('day').value; 

or

var d = $('#day').val() 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -