javascript - How to read the value printing inside a jsp (as a custom HTML tag) onChange event in JS -
i using following read image local system , try converting same base64 using moxie.
<a id="file-picker" href="javascript:;"></a>
base 64 result printing inside code
<code id="result"> result printing here</code>
i need access result(base 64 value) in js:
$("#file-picker").on('change',function(event){ var tmppath ; tmppath = $("#code").val();
how read base 64 value printed inside in js on change event?
you can internal data <code></code>
using .html()
$("#file-picker").on('click',function(event){ var tmppath = $("#result").html(); }
and should bind click
event on anchors , not change
event
Comments
Post a Comment