I am trying to implement a widget in JQuery colorbox that allows users to load files. My approach involves using an input tag with type='file' and styling it with visibility:hidden. Additionally, I have created two labels that are styled like buttons and both have a 'for' attribute that points to the file upload input element. This setup causes a select file popup to open when the user clicks on either label.
This method works well for IE9 and IE10, however, it does not function properly in IE8. Clicking on the label does not trigger the click event on the input element as expected.
If anyone has a solution or suggestions for fixing this issue, please let me know. Your help is greatly appreciated.
Thank you in advance.