jquery - JavaScript Selector is Not working when condition changes -
i facing issue javascript selector here code
onchangecustomgroup : function(){ var element = this.model.get("customgroup"), = this; if(element == "security") { that.ui.__el_string_abc.xyzselector(); } if(element == "benchmark") { that.ui.__el_string_abc.dfgselector(); } }
onchangecustomgroup modelevent in backbone there 2 fields 1.customgroup 2. filtercode customgroup field having 2 values populate 1.security , 2.benchmark
securityselector , benchmarkselector 2 functions returns set of values in form of html , appends filtercode region
the issue here when select security ,security fields populating in filtercode field on alter benchmark benchmark selector not populating working 1 condition.not two
javascript jquery backbone.js marionette
No comments:
Post a Comment