# profile-builder/3.9.6/assets/js/select-user-to-edit.js

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

- Page: https://pluginprobe.com/plugins/profile-builder/3.9.6/code/assets/js/select-user-to-edit.js
- Raw: https://pluginprobe.com/plugins/profile-builder/3.9.6/raw/assets/js/select-user-to-edit.js
- Modified: 2022-11-16T08:27:20+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.9.6/code/assets/js/select-user-to-edit.js#L10-L20`.

```javascript
jQuery(document).ready(function(){

    jQuery("select").filter(function() {
        if ( this.id.startsWith( "wppb-" ) && this.id.endsWith( "user-to-edit" ) ) {
            return this;
        }
    }).on("change", function () {
        window.location.href = jQuery(this).val();
    });
    jQuery(function(){
        jQuery("select").filter(function() {
            if ( this.id.startsWith( "wppb-" ) && this.id.endsWith( "user-to-edit" ) ) {
                return this;
            }
        }).select2().on("select2:open", function(){
            if( jQuery(".wppb-user-to-edit").parents( ".overlay-container" ).length ){
                jQuery(".wppb-user-to-edit").data("select2").dropdown.$dropdownContainer.css( "z-index", "99999999" );
            }
        });
    })

})
```
