Title: Onload select variation doesn&#039;t changes the image?
Last modified: August 21, 2016

---

# Onload select variation doesn't changes the image?

 *  [sameerdas30](https://wordpress.org/support/users/sameerdas30/)
 * (@sameerdas30)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/onload-select-variation-doesnt-changes-the-image/)
 *     ```
       <script type="text/javascript">
       $( document ).ready(function() {
       $('div.wpsc_variation_forms select.wpsc_select_variation')
       .val('8')
       .trigger('change');
   
       });
       </script>
       ```
   
 * _[Please post code & markup between backticks or use the code button. Your posted
   code may now have been permanently damaged by the forum’s parser.]_
 * By using the above script i’m able to change the price and select the non default
   option, but the problem is that the image is not swapped according to the changed
   variation value.
    Please help.
 * [http://wordpress.org/extend/plugins/sp-wpec-variation-image-swap/](http://wordpress.org/extend/plugins/sp-wpec-variation-image-swap/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Roy Ho](https://wordpress.org/support/users/splashingpixelscom/)
 * (@splashingpixelscom)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/onload-select-variation-doesnt-changes-the-image/#post-3934073)
 * Not too sure what you mean. This is our demo -> [http://plugin-wpec-variation-image-swap.splashingpixels.com/](http://plugin-wpec-variation-image-swap.splashingpixels.com/)
 *  Thread Starter [sameerdas30](https://wordpress.org/support/users/sameerdas30/)
 * (@sameerdas30)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/onload-select-variation-doesnt-changes-the-image/#post-3934112)
 * I just want to choose one default value while the page on load.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Onload select variation doesn't changes the image?’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sp-wpec-variation-image-swap.svg)
 * [SP WPEC Variation Image Swap](https://wordpress.org/plugins/sp-wpec-variation-image-swap/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sp-wpec-variation-image-swap/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sp-wpec-variation-image-swap/)
 * [Active Topics](https://wordpress.org/support/plugin/sp-wpec-variation-image-swap/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sp-wpec-variation-image-swap/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sp-wpec-variation-image-swap/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [sameerdas30](https://wordpress.org/support/users/sameerdas30/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/onload-select-variation-doesnt-changes-the-image/#post-3934112)
 * Status: not resolved