EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: sky-t on August 23, 2017, 08:52:47 AM



Title: Filebox open by another button, link, etc.
Post by: sky-t on August 23, 2017, 08:52:47 AM
Hi there,
is there a possibility to simulate the click on filebox which opens the choose file dialog with another link, button, etc.?


Title: Re: Filebox open by another button, link, etc.
Post by: stworthy on August 24, 2017, 12:16:20 AM
Please try this code:
Code:
var fileId = $('#f1').filebox('options').fileboxId;
$('#'+fileId)[0].click();


Title: Re: Filebox open by another button, link, etc.
Post by: sky-t on August 24, 2017, 02:42:41 AM
Hi stworthy,

this works fine - thanks a lot!!