({
hide : function(component,event,helper){
var elements = document.getElementsByClassName("myTest");
elements[0].style.display = 'none';
},
show : function(component,event,helper){
var elements = document.getElementsByClassName("myTest");
elements[0].style.display = 'block';
}
})
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
({
hide : function(component,event,helper){
var elements = document.getElementsByClassName("myTest");
elements[0].style.display = 'none';
},
show : function(component,event,helper){
var elements = document.getElementsByClassName("myTest");
elements[0].style.display = 'block';
}
})
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
I trust you are doing very well.
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Component:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
All Answers
I trust you are doing very well.
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Component:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas