EasyUI Forum
April 27, 2024, 01:52:38 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How can I get the files from a filebox [solved]  (Read 5115 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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);
          });        
          }
        })
« Last Edit: October 19, 2017, 08:01:24 PM by devnull » Logged

-- Licensed User --
devnull
Sr. Member
****
Posts: 431


View Profile
« Reply #1 on: October 19, 2017, 08:01:08 PM »

OK, I managed to find it:

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

-- Licensed User --
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!