# profile-builder/3.16.5/assets/js/jquery-pb-dashboard.js

User Profile Builder – Beautiful User Registration Forms, User Profiles &amp; User Role Editor, version 3.16.5. 15 lines.

- Page: https://pluginprobe.com/plugins/profile-builder/3.16.5/code/assets/js/jquery-pb-dashboard.js
- Raw: https://pluginprobe.com/plugins/profile-builder/3.16.5/raw/assets/js/jquery-pb-dashboard.js
- Modified: 2023-11-13T12:18:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/profile-builder/3.16.5/code/assets/js/jquery-pb-dashboard.js#L10-L20`.

```javascript
jQuery( document ).on( 'change', '#wppb-dashboard-stats-select', function(){

    let value = jQuery( this ).val()
    let nonce = jQuery( '#wppb-dashboard-stats-select__nonce' ).val()

    jQuery.post( ajaxurl, { action: 'wppb_get_dashboard_stats', interval: value, '_wpnonce': nonce }, function( response ) {

        response = JSON.parse( response )

        if( response.data.newly_registered !== undefined && response.data.newly_registered !== null)
            jQuery('.wppb-dashboard-box.newly_registered .value').html( response.data.newly_registered )

    });

});
```
