function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TrailheadBeginnerTrailheadBeginner 

Hello All..How to achieve this visual force page scenario in Lightning.Please help me to resolve this issue.

function selectAllCheckboxes(obj,receivedInputID)
        {
            var inputCheckBox = document.getElementsByTagName("input");         //we are taking tage name here         
             for(var i=0; i<inputCheckBox.length; i++)
            {          
                 
                if(inputCheckBox[i].id.indexOf(receivedInputID)!=-1)
                {                                     
                   
                    inputCheckBox[i].checked = obj.checked;
                }
            }
        }
        
        ==============================================================
         <apex:column >
                <apex:facet name="header">
                     <apex:inputCheckbox onclick="selectAllCheckboxes(this,'inputId')"/>
                </apex:facet>
                
                <apex:inputCheckbox value="{!a.isSelected}" id="inputId"/>                                   
            </apex:column>
            ===============================================================
sfdcMonkey.comsfdcMonkey.com
hi Annappa Ph
are you want this functionality in lightning component ?
TrailheadBeginnerTrailheadBeginner
sorry for late reply.I have done that.Thank you