performance - How to use the variable that I create in jquery -


var appthour = $('select[name="ctl00$m$g_20abfee5_53b6_4db3_b243_ae9b79cab374$ctl00$ctl05$ctl09$ctl00$ctl00$ctl04$ctl00$ctl00$datetimefield$datetimefielddatehours"]').val(); var endhour = $('select[name="ctl00$m$g_20abfee5_53b6_4db3_b243_ae9b79cab374$ctl00$ctl05$ctl11$ctl00$ctl00$ctl04$ctl00$ctl00$datetimefield$datetimefielddatehours"]').val();   $('appthour').blur(function() {     $('endhour').val($(this).val()); }); 

this doesn't seem work. tried , still doesn't work.

$appthour.blur(function() {     $endhour.val($(this).val()); }); 

thanks

actually appthour , endhour elements. do

appthour.blur(function() { endhour.val($(this).val()); } 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -