Rails uses unobtrusive javascript to prompt confirm messages on a (submit) button. These messages are stored in a `data-confirm` attribute on the button/link.

Now, suppose you only want to confirm sometimes, as in my case where I only want to prompt when busy editing prices, you obviously add and remove these attributes with javascript (jQuery)

```
$('.create-order').attr('data-confirm', "Warning: You are busy editing item prices and you haven't applied your changes yet. Continue?");

```

and

```
$('.create-order').removeAttr('data-confirm');

```

This is working and the attribute is **definitely** being appended and removed ( I double checked). But I noticed that once the message has been displayed once, it will display every time after that as well, even after the attribute has been removed. ( I invite anyone to try this as well and share your results? )

How can I stop this from happening?