Hi,
I am trying to allowing the end user to edit and see the images that have been edited using jOuery.
However, I am geetting no such changes.
the following is my code:
- <script type="text/javascript">
- $.noConflict();
- function readURL(input) {
- var reader = new FileReader();
- if (input.files && input.files[0]) {
- reader.onload = function (e) {
- jQuery('#proImg').attr('src', e.target.result);
- }
- reader.readAsDataURL(input.files[0]);
- } else if (input.files && input.files[1]) {
- reader.onload = function (w) {
- jQuery('#licImg').attr('src', w.target.result);
- }
- reader.readAsDataURL(input.files[1]);
- }
- }
- jQuery('#profileImg, #licenseImg').change(function () {
- jQuery('#profileImg').readURL();
- jQuery('#licenseImg').readURL();
- });
- </script>
Thank you.