Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically added select options are not showing #67

Open
rides90 opened this issue Sep 21, 2017 · 1 comment
Open

Dynamically added select options are not showing #67

rides90 opened this issue Sep 21, 2017 · 1 comment

Comments

@rides90
Copy link

rides90 commented Sep 21, 2017

When i click the repeater add button the dynamically added select options are not showing in the new repeater row.

@Pablo-Araya
Copy link

Pablo-Araya commented Oct 18, 2018

You should select it on show event.

        $('#your_repeater').repeater({            
            initEmpty: false,
            isFirstItemUndeletable: true,
            show: function () {
                $(this).find('select').val('whatever-option-value-you-like-to-be-selected');
                $(this).slideDown();
            },
            hide: function (deleteElement) {                
                $(this).slideUp(deleteElement);
            }

        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants