strangehouse

strangehouse supports this item

Supported

62 comments found.

ht1080z

ht1080z Purchased

Thanks for this great plugin! Works exactly as you describe and packed with a very detailed documentation. I’m using it with bootstarp v3.3.7 and jquery v3.1 without any problem. Keep up the good work!

Hello.

You can use callback to check if image is selected. E.g:

    var isValid = false;

    $('#example7').shImageSelect({
    maxSelected: 2,
    callbacks: {
        onSelect: function (){
            isValid = true;
        },
        onUnselect: function (){
              isValid = false;
        },
        onSelectedLimit: function (){
            alert('Limit has been reached!');
        }
    }
});
ht1080z

ht1080z Purchased

Thanks! Can you tell me who can i validate this variable (not the element) in jquery validation?

You can try next code:
 $.validator.addMethod("valueNotEquals", function(value, element, arg){
  return arg !== value;
 }, "Value must not equal arg.");

 // configure your validation
 $("form").validate({
  rules: {
   SelectName: { valueNotEquals: "Select item" } // value of default selected option
  },
  messages: {
   SelectName: { valueNotEquals: "Please select an item!" }
  }  
 });

borotc

borotc Purchased

Have the same problem as “tageffects” from a year ago. Chrome not working with a touchscreen.

See their post:

“I found out why Chrome is not working. This laptop has a touchscreen (which are becoming very popular). The script must sense that the laptop is actually a tablet so in Chrome (but not FF or IE which is odd), it disables the keyboard and mouse inputs. So you can not scroll or click on any of the images within the select tag.

But if you use the touch the screen, the script responds. I hope this is an easy fix?

FYI, the author was quick to respond and correct the Chrome/touchscreen issue above. Nice!”

Can you tell me what I need to do please?

Hello. Please submit a new ticket and we will send you fixed version.

by
by
by
by
by
by