jQuery image picker

后端 未结 3 1700
栀梦
栀梦 2021-02-06 05:20

I\'m looking for a jQuery image picker plugin that allows me to do the following:

  1. Display a group of images and let the user select one (and only one) by clicking
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 05:53

    Something like this? i dont know if there is plugin but is seems really simple

    // HTML
    
    ...
    // JS $('div#image_container img').click(function(){ // set the img-source as value of image_from_list $('input#image_from_list').val( $(this).attr("src") ); });

提交回复
热议问题