Modify the following HTML code by adding JavaScript function so that when the user click on delete button, any button whose value is divisible by entered number cut out/removed from the page. Number entered in the divisible text field must be valid. [20 marks] HTML CODE: Divisible by: Delete Click a button: 13 66 24 82 52 93 61 45 64 105

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Modify the following HTML code by adding JavaScript function so that when the user click on
delete button, any button whose value is divisible by entered number cut out/removed from the page.
Number entered in the divisible text field must be valid. [20 marks]
HTML CODE:
<div id="controls">
Divisible by:
<input type="text" id="divisor" />
<button id="del">Delete</button>
</div> <div id="buttons">
Click a button:
<button>13</button> <button>66</button>
<button>24</button> <button>82</button>
<button>52</button> <button>93</button>
<button>61</button> <button>45</button>
<button>64</button> <button>105</button> </div>

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY