Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once button1 is clicke Click and double click the buttons Button 1< /but ton> 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
QUESTION 13
Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once buttonl is clicked.
<html><head>
<script>
function myfunction()
document.getElementById('b2').style.display
document.getElementById('b3').style.display
"none";
= "none";
%3D
</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:QUESTION 13 Rewrite the following JavaScript code using jQuery, to hide button2 and button3 once buttonl is clicked. <html><head> <script> function myfunction() document.getElementById('b2').style.display document.getElementById('b3').style.display "none"; = "none"; %3D </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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning