form-group"><input type="file" class="form-control attachments" placeholder="Ticket Title" name="attachment_' + attachments_count + '" id="attachment_' + attachments_count + '"></div>')
        });

$('.attachment-close').click(function (e) {
    href = "/tickets/attachment/delete/" + $(this).attr('id') + '/'
    console.log(href)
    $('#block_question').text('Do you want to delete Attachment?')
    $('#block_question').dialog({
        modal: true,
        dialogClass: "no-close",
        draggable: false