I am using this in a modal: http://www.web2media.net/laktek/2008/10/27/really-simple-color-picker-in-jquery/ but it does not work. The same code:
//Start of document Ready which contains event handlers
$(document).ready(function() {
$('#ForeColor').colorPicker();
});
<input type="text" value="#333399" id="ForeColor" class="colourPicker" />
works fine in a normal page but as soon as I load it in a jQuery UI Modal (the contents of which come from an ASP.Net MVC partial view) it breaks! It does some of the work, i.e reformats the text box to show the current colour but clicking it does not cause the selector to appear!
I suspect it's an issue with using jQuery inside modals..
Any ideas?