JavaScript jQuery trigger only occurs first time jquery trigger only once,jquery trigger only one time,jquery

Clicking #input multiple times will upload a file each time.

Clicking #button which in turn triggers #input will only upload a file the first time (and not at all if #input was first clicked). I will, however, open the file selector browser, just not upload the file.

Why is this, and how do I change it to allow it to be clicked multiple times?

PS. Why I wish to do so instead of just using an #input? I am using jQueryUI Dialog and wish one of the buttons to initiate the input.

<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>My profile</title>
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui.min.js"></script>
        <script type="text/javascript" src="js/jquery.fileupload.js"></script>
        <script type="text/javascript"> 
            $(function(){
                $('#button').click(function(){uploader.trigger('click');});
                var uploader=$('#input').fileupload( {
                    url: 'upload.php',
                    formData: {user_id:50},
                    dataType: 'json',
                    }
                );
            });
        </script>
    </head>
    <body>
        <button id="button">Click</button>
        <input id="input" type="file" name="name">
    </body>
</html>
Answer:1

I'm using the request library in node.js, which downloads an HTML body response, but does so in chunks. Currently I'm just concatenating them into a dataChunks variable and using a hacked-together ...

I'm using the request library in node.js, which downloads an HTML body response, but does so in chunks. Currently I'm just concatenating them into a dataChunks variable and using a hacked-together ...

  1. nodejs convert http to https

i have form that's announcing user for error, warning or new content on my site. I have three buttons on class ann-right and each button have its color. When i click the button, the button input on ...

i have form that's announcing user for error, warning or new content on my site. I have three buttons on class ann-right and each button have its color. When i click the button, the button input on ...

I have a input box. I enter the search term and the values get returned. What I am trying to do is click the dynamic button with the value attached to it. However when I click on the button it reloads ...

I have a input box. I enter the search term and the values get returned. What I am trying to do is click the dynamic button with the value attached to it. However when I click on the button it reloads ...

  1. jquery dynamic button click
  2. jquery dynamic button click handler
  3. jquery dynamic button event
  4. jquery dynamic button not working
  5. jquery dynamic button click function
  6. jquery dynamic button create
  7. jquery dynamic button bind
  8. jquery button dynamic id
  9. jquery dynamic radio button click event
  10. jquery dialog dynamic buttons
  11. jquery dynamic radio button
  12. jquery get dynamic button id
  13. jquery dialog dynamic button text
  14. jquery dynamic add button
  15. jquery dynamic change button text
  16. jquery dynamic radio button change
  17. jquery dynamic radio button checked
  18. jquery datatable dynamic button
  19. jquery disable dynamic button
  20. jquery ui dialog dynamic buttons

I have been trying to setup a server where users can send sign in using websockets, but I don't want to do this using ws. I want to be able turn on wss without having https. Sadly, there aren't any ...

I have been trying to setup a server where users can send sign in using websockets, but I don't want to do this using ws. I want to be able turn on wss without having https. Sadly, there aren't any ...