Both work. I decided to remove the code and go with data-confirm. Less code to maintain, but its not styled.