javascript - How to use button reference in jQuery? -


i using simple ajax uploader

https://github.com/lpology/simple-ajax-uploader https://www.lpology.com/code/ajaxuploader/docs.php 

my file upload button

<div class="form-group">     <input type="button" id="upload-btn1" class="btn btn-success clearfix" value="choose file">   </div> 

i trying use onchange callback function of simpleajax uploader

onchange( filename, extension, uploadbtn ) 

this function called when user selects file.

the function gets passed 3 arguments:

  • a string containing filename
  • a string containing file extension
  • a reference button triggered upload

i facing problem 3rd parameter of onchange function uploadbtn button reference can different digits, wonder how can use reference change upload button text when file selected!

thanks.

this bug in simple ajax uploader.

for more info please see issue #115


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -