jquery replaceWith implications
- by Vlad Ioffe
I am using replaceWith for input type=file to handle changes of the file the user wants to upload.
I have this code:
$('#add_cv_input').change(function() {
// here is some code
else {
alert('put one of this: pdf doc docx');
$("#add_cv_input").replaceWith('<input id="add_cv_input" type="file"/>');
…