Contents
Hide/Show Button Onclick on Another Button in Salesforce Lightning Using Javascript
ShowVfpage
<apex:page showHeader="false" sidebar="false" lightningStylesheets="true"> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <apex:slds/> <script type="text/javascript"> $(document).ready(function() { $('#edit').css('display', 'show'); $('#delete').css('display', 'show'); $('#save').click(function() { $('#edit').toggle(); $('#delete').toggle(); }); }); </script> <div class="red box"> <button type="button" value="save" id="save">Save</button> <button type="button" id="edit">edit</button> <button type="button" id="delete">Delete</button> </div> </apex:page>
Add comment