I have an element on the page, i.e.
I then add the RQB element with:
RedQueryBuilderFactory.create({targetId:'foo1',
meta:myMeta,
onSqlChange:sqlChange,
onTableChange:tableChange,
enumerate:enumerate,
suggest:suggest,
editors : [ {
name: 'DATE',
format : 'dd.MM.yyyy'
}
]},
sql,
args);
I then change the id of the containing div via $('#foo1').attr('id','foo2');
How do I update the targetId in the RQB instance config so that it will also be 'foo2' to that it matches the containing div?