The task is simple. There is input that causes a dialog box to select a file from the computer. How to put the trigger for the moment when the user clicks OK in this window?
if($('input[type=file]').val() != '') { //действия }
those. if the input with the file is not empty - the button was pressed! trigger will not twitch again if the file has not been selected!
Source: https://ru.stackoverflow.com/questions/167967/More articles:JQuery UI range slider malfunctionEvent-oriented programmingHow to insert a function into an echo <<< END END; ?Hash tags in tweeterScroll to end when loading pageLinix compilation errorsDispatcher of automatic backup of information from ftp and mail servers [closed]XML parsing errorExample “Bird's eye view”“Loss” of memory in UbuntuAll Articles