Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once buttonl is clicked. Click and double click the buttons Button 1 Button 2 Button 3

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter2: Formatting Workbook Text And Data
Section: Chapter Questions
Problem 12RA
icon
Related questions
Question
Quèstion 13
Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once button1 is clicked.
<html><head>
<script>
function myfunction()
document.getElementById('b2').style.display = "none";
document.getElementById('b3').style.display = "none";
</script>
</head>
<body>
<h2>Click and double click the buttons</h2>
<button id='b1' onClick="myfunction()">Button 1</button>
<button id%3D'b2'>Button 2</button>
<button id='b3'>Button 3</button>
</body>
</html>
Transcribed Image Text:Quèstion 13 Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once button1 is clicked. <html><head> <script> function myfunction() document.getElementById('b2').style.display = "none"; document.getElementById('b3').style.display = "none"; </script> </head> <body> <h2>Click and double click the buttons</h2> <button id='b1' onClick="myfunction()">Button 1</button> <button id%3D'b2'>Button 2</button> <button id='b3'>Button 3</button> </body> </html>
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage