Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a button that open the File manager to fill out an input field with the file URL #8

Closed
vikramparihar opened this issue Mar 20, 2018 · 0 comments

Comments

@vikramparihar
Copy link

Hi
This is my code for show url in input typr on button click
$(document).ready(function(){

$('#myframe').on('load', function () {
          $(this).contents().on('click','.select',function () {
              var path = $(this).attr('data-path')
              $('#path').val(path);
              $('#image').attr('src', path)
              $('#myModal').modal('hide')
          });
      });
});

But unable to set selected image url in input type.
Also
$(this).contents().on('click','.select',function ()//
in this line of code unable to find .select class in modal view.

Thanks
filemanager screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant