May I ask about how can I remove the value of q , when the class .close is clicked?
Here with my source code:
$(document).on('click', '.close', function () {
$(this).parents('p').remove();
})
$('#Q1DocPath').change(function () {
var path = $(this).val();
if (path != '' && path != null) {
var q = path.substring(path.lastIndexOf('\\') + 1);
$('#lblQ1Doc').html('<br/>' + '<p>' + q + '<a class="close"><font color="red">x</font><a>' + '</p>');
}
})