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
Post a Comment