Lakshman Tirlangi
unread,Dec 28, 2011, 4:23:34 AM12/28/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JavaScript Templates Engine PURE
Hii..
I have select values as data and using the directive I am populating
the data in select dropdown. I need to get different option values for
select dropdown2 based on the options selected from the dropdown1. But
everytime I reselect the option from dropdown1, option values in the
dropdown2 are getting doubled.. How to fix this render issue using
purejs..
Here is the script that I have used for onchange select.
$('#sel_type').change(function() {
var renderName = $('#sel_type').val();
switch(renderName) {
case "date":
$('#trips_1').render(date, date_directive);
break;
case "trip":
$('#trips_1').render(trip, trip_directive);
break;
case "result":
$('#trips_1').render(result, result_directive);
break;
}
});
Thanx in advance.
Lakshman