I want to set models which are created dynamically by JQuery. I found a sample here with $compile, But in my case, I don't have access to those created elements at their creating time as those elements are created by a third party plugin (Like JQuery UI s). I have access only to their ID s.
So is there a way to set models to such elements. (I use jquery 1.3)
Here is an sample: Assume I am using the slider of Jquery as mentioned here . #slider is only the div in our accessible layout. Rest of elements are created by the JQuery UI.
<script>
$(function() {
$( "#slider" ).slider();
});
</script>
</head><body>
<div id="slider"></div>
</body>
The sliding gadget is created with a span,
<span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0" style="left: 9%;"></span>
This span is created by jquery dynamically. In this case, I want to set a angular model to this <span> ?