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) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -