adil dosani

adil dosani

  • NA
  • 19
  • 2.6k

switch from jquery to angularjs code

Feb 4 2018 10:12 PM
$(document).ready(function(){
$("#select1,#select2,#select3").change(function(){
$(this).find("option:selected").each(function(){
var optionValue = $(this).attr("value");
if(optionValue){
$(".box").not("." + optionValue).hide();
$("." + optionValue).show();
} else{
$(".box").hide();
}
});
}).change();
});
 
i want to add this abode jquery code into angularjs code like directive services or anyone 
pleas help 
 
or convert this jqury code into angularjs 

Answers (3)