jquery - POST Javascript generated file -


using fabric.js, adding text overlays user's local image, , shoving

<img src="" id="pic" style="display: none;"> 

now, need post server.i know how upload files justing html ,

<input type="file" id="popup_chooser" name="something"> 

however, cannot figure out how $('#pic').attr('src') post variable.

how best way go doing this? thanks

if understand question right :

$('#popup_chooser').val($('#pic').attr('src')); 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -