Auto scroll after selecting date and time

[ad_1]

After time is selected, cursor is moved to the first field and window is scrolled to 200px from window top position.

You can change scroll offset from window top:

/**
* Change scroll offset from window top in px (Default: 200)
*/
add_filter( 'app_js_data', 'app_js_data' );
function app_js_data( $param ) {
    $param['offset'] = 500;
    return $param;
}

Cheers,
Hakan

Thread Starter
varlot

(@varlot)

Hakan,

thank you. 😀 Works like a charm.

Best regards,
Varlot

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer