EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on October 19, 2017, 07:51:43 PM



Title: How can I get the files from a filebox [solved]
Post by: devnull on October 19, 2017, 07:51:43 PM
Code:
        $('#xfiles').filebox({
          buttonText: 'Choose File',
          buttonAlign: 'left',
          onChange: function(nv,ov){
            return console.log($(this).files);
          });        
          }
        })


Title: Re: How can I get the files from a filebox ? [solved]
Post by: devnull on October 19, 2017, 08:01:08 PM
OK, I managed to find it:

Code:
var files = $(this).next().find('.textbox-value')[0];