3
Answers

switch from jquery to angularjs code

adil dosani

adil dosani

7y
763
1
$(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)