Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- require(['jquery', 'jquery/ui'], function($){
- if(jQuery('.super-attribute-select option').length == 1){
- jQuery('.super-attribute-select option:first').attr('selected','selected');
- }
- });
- </script>
Add Comment
Please, Sign In to add comment