I have a problem with using jquery with knockout in ie8. Looks like binding using jquery to various events like: click, focus, so on is not working properly. Let's see some code, example from jqueryui
<!--ko with: someModel -->
<input id="tags" />
<--/ko-->
<script>
$(function() {
var availableTags = [
"Java",
"JavaScript"
];
$( "#tags" ).autocomplete({
source: function (request, response) {
response($.map(data, function (item) {
return {
label: item,
value: item
}
}))
}
});
});
</script>
There is no error, nothing. Just source callback is never called. If I put input element outside any knockout context everything is fine. Similar problem is with other actions, like jquery placeholder plugin and knockout.
Both jquery and knockout claims to work with ie8, what is causing the problem. How can I solve it?