adil dosani

adil dosani

  • NA
  • 19
  • 2.3k

jquery to angularjs code

Feb 5 2018 2:23 AM
$(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();
});
or add in angularjs directive services
please help

Answers (1)