In html
give a id to your a tag.
<label class="label-set" id="mainId">
<input type="checkbox" class="" name="sameadr" />
I agree to all statements of
<a href="#" id="newId" style="color: #ee1d24"> Terms of Use </a>
</label>
In javascript
document.getElementById("newId").addEventListener("click", function(){
confirm("confirm this") // or your popop code
})
Try this for vue.js
<a href="javascript:void(0)" v-on:click="openPopup" id="newId" style="color: #ee1d24"> Terms of Use </a>
And write this inside your method
new Vue({
el: '#mainId',
methods: {
openPopup: function () {
alert('ok')
}
}
})
Try this