Jquery variable use in function -


I need to use the I variable date and time problem function process with jquery, but I do not how to do it Please do someone please help me (work () ($ ('input [name =' "date"] '). Change (function () {var date = $ (' input [name = "date"] ') . Val (); document.getElementById ( "on"). InnerHTML = date;}); $ ( 'input [name = "time"]'). change (function () {Var time = $ ( 'input [name = "Time"] '). Val ();}); function process () {}}); hopefully I think it is right that you want to call the function process () every time a date / time change.

  $ (document) .ready (function () {var date, time, / / them top $ ( 'input [name = "date"]' declared in) $ ( 'input' [name = 'date'] '). Val (on); document.getElementById ( "date"). InnerHTML = date ; process ();}); $ ( 'input [] = "time"]. change (function () {t = $ (' input [name = "time"] "). Val (); process (); }); Function Process () {/ date of use, time here}});    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -