thanks, nutron. now i have a new (related) problem. i have this:
betGraphClone = $('betGraph').clone(true, true).cloneEvents
('betGraph');
it clones the div with contents and IDs in place. the original element
has a slider effect that i would like to reapply to the cloned div but
it does not work. is it because of conflicting IDs even though the
original element has been destroyed?
on an ajax success response i have:
onSuccess: function(responseJSON){
betGraphClone = $('betGraph').clone(true, true).cloneEvents
('betGraph');
$('betGraph').destroy();
.....
.....
then for reinit i have:
$('reInitSlider').addEvent('click', function(){
betGraphClone.inject('betContainer')
mySlideA.setMin(90).setMax(140);
});
is this enough JS to see what i'm doing wrong?