I have hidden input type=file field, and i want to open its select dialog with javascript. I tried to fire click event on this element, but without luck.
Im using mootools.
$('input_id').fireEvent('click');
This is possible at all?
I have hidden input type=file field, and i want to open its select dialog with javascript. I tried to fire click event on this element, but without luck.
Im using mootools.
$('input_id').fireEvent('click');
This is possible at all?
Already answered: http://stackoverflow.com/questions/210643/in-javascript-can-i-make-a-click-event-fire-programmatically-for-a-file-input-ele