My problem is quite annoying, probably something really stupid but I've been going around it and didn't find a solution.I call in 2 different pages to this partial view:
<div id="NotificationStatusSuspensionDiv">
<p>
<strong><%= Html.Label("Status :") %> </strong><br />
<input type="radio" name="NotificationStatusSuspension" id="statusA" value="A" checked="checked" />
<label for="statusA">Active</label>
<input type="radio" name="NotificationStatusSuspension" id="statusN" value="N" />
<label for="statusN">Not Active</label>
</p>
</div>
The thing is that in the document.ready method in an external javascript file I do this:
$('input:radio[name="NotificationStatusSuspension"]').each(function() {
$(this).click(function() {
setNotificationStatus($(this));
});
});
I've seen that this works fine, when I click the radiobutton it loads the notifications which correspond to the status selected (that is what setNotificationStatus does). The problem is when I add the UI to the radiobutton like this:
$('#NotificationStatusSuspensionDiv').buttonset();
With all this code, it works perfectly fine in firefox and Chrome, but in IE it doesn't do anything. It is as if it didn't recognize the mouse click. The funny thing about this is that I have more or less the same code in another part of the site and it works just fine with IE....Do you have any clue ?