You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the code below which has 2 fields, a year with 4 characters and a position with 2 characters.
It's working so far and currently 'flaps' to show 2014 02 then clears the letters and then re-flaps to show 2014 02.
How would you go about assigning multiple values to this script so I could 'flap' from 2014 02 to 2013 01 to 2012 04 etc...
var $demos = $('#animation_demo input');
setTimeout(function(){
$year.val('2014').change();
$position.val('02').change();
var toggle = true;
setInterval(function(){
if (toggle) {
$year.val('2014').change();
$position.val('02').change();
}
else {
$year.val('').change();
$position.val('').change();
}
toggle = !toggle;
}, 3000);
}, 1000);
The text was updated successfully, but these errors were encountered:
I have the code below which has 2 fields, a year with 4 characters and a position with 2 characters.
It's working so far and currently 'flaps' to show 2014 02 then clears the letters and then re-flaps to show 2014 02.
How would you go about assigning multiple values to this script so I could 'flap' from 2014 02 to 2013 01 to 2012 04 etc...
var$demos = $ ('#animation_demo input');
setTimeout(function(){
$year.val('2014').change();
$position.val('02').change();
var toggle = true;
setInterval(function(){
if (toggle) {
$year.val('2014').change();
$position.val('02').change();
}
else {
$year.val('').change();
$position.val('').change();
}
toggle = !toggle;
}, 3000);
The text was updated successfully, but these errors were encountered: