jQueryUI button canceling postback

jQueryUI button canceling postback

Ihave the following to avoid double-clicking :
<asp:LinkButton runat="server" OnClick="CreateQuery" OnClientClick="return CheckQuery();" ID="CreateButton" Text="Create" />

and in my .js file

function CheckQuery() { if (submitlock) { return false; } submitlock = true; $('#CreateButton').button('option', 'label', 'Creation in progress ...'); $('#CreateButton').button('option', 'icons', { primary: 'ui-icon-waiting' }); // Some code return true; }

In Firefox the postback is done properly and CreateQuery is called.

In IE 9,10,11, the postback is not done at all. The button is updated and the function does return true.

If I comment out the two option lines, it works properly with IE.

Any help as to why this happens ?