<a
    class="btn btn-default"
    data-target="#confirmation-modal"
    data-toggle="modal"
    data-tooltip="true"
    data-title="<?php eT("Delete condition"); ?>"
    data-message="<?php eT("Are you sure you want to delete this condition?"); ?>"
    data-onclick="(function() {
            $('#editModeTargetVal<?php echo $rows['cid']; ?>').remove();
            $('#cquestions<?php echo $rows['cid']; ?>').remove();
            document.getElementById('conditionaction<?php echo $rows['cid']; ?>').submit();
        });"
    >
    <span class="glyphicon glyphicon-trash text-danger"></span>
</a>
<a
    class="btn btn-default"
    data-toggle="tooltip"
    data-title="<?php eT("Edit condition"); ?>"
    href='#' 
    onclick='document.getElementById("subaction<?php echo $rows['cid']; ?>").value="editthiscondition"; document.getElementById("conditionaction<?php echo $rows['cid']; ?>").submit();'
>
    <span class="glyphicon glyphicon-pencil"></span>
</a>
        <input type='hidden' name='subaction' id='subaction<?php echo $rows['cid']; ?>' value='delete' />
        <input type='hidden' name='cid' value='<?php echo $rows['cid']; ?>' />
        <input type='hidden' name='scenario' value='<?php echo $rows['scenario']; ?>' />
        <!-- <input type='hidden' id='cquestions{$rows['cid']}'  name='cquestions' value='{$rows['cfieldname']}' /> -->
        <input type='hidden' name='method' value='<?php echo $rows['method']; ?>' />
        <input type='hidden' name='sid' value='<?php echo $surveyid; ?>' />
        <input type='hidden' name='gid' value='<?php echo $gid; ?>' />
        <input type='hidden' name='qid' value='<?php echo $qid; ?>' />
