I wanted to show and hide div based on condition in jquery
Below code works and hide all div's having class "countryselection"
But if I am passing variable at runtime and show all div's like below:
but it doesn't work.
Below is the code snippet. Class in variable "selectedValue" is already applied in the div.
var selectedValue = jQuery(this).val();
alert('vcountry: ' + selectedValue);