{ "key_pair_value_system": true, "answer_rating_count": "", "question_feedback_html": { "html_star": "", "html_star_feedback": "" }, "answer_average_rating_value": "", "answer_date_js": "2024-09-10T10:18:00-04:00", "answer_date": "2024-09-10 10:18:00", "is_docs_available": null, "is_excel_available": null, "is_pdf_available": null, "count_file_available": 0, "main_page": "student_question_view", "question_id": "10062636", "url": "\/study-help\/questions\/instruction-modify-all-possible-aspects-of-the-javascript-solution-10062636", "question_creation_date_js": "2024-09-10T10:18:00-04:00", "question_creation_date": "Sep 10, 2024 10:18 AM", "meta_title": "[Solved] Instruction - Modify all possible aspects | SolutionInn", "meta_description": "Answer of - Instruction - Modify all possible aspects of the JavaScript solution in the Quiz 2.html code by using jQuery. - Please | SolutionInn", "meta_keywords": "instruction,-,modify,aspects,javascript,solution,quiz,2,html,code,jquery,quiz2", "question_title_h1": "Instruction - Modify all possible aspects of the JavaScript solution in the Quiz 2.html code by using jQuery. - Please use the code given to", "question_title": "Instruction - Modify all possible aspects of the JavaScript solution in the", "question_title_for_js_snippet": "Instruction Modify all possible aspects of the JavaScript solution in the Quiz 2 html code by using jQuery Please use the code given to modify all possible aspects of the JavaScript solution in the Quiz2 html Quiz 2 function addFruit() var tbody document getElementById( FruitList ) childNodes 1 var input row document getElementById( InputRow ) var fruit name document getElementById( fruit name ) if (fruit name value ) var tr document createElement( tr ) var td1 document createElement( td ) var td2 document createElement( td ) var a document createElement( a ) tr id fruit name value td1 innerText fruit name value td2 align center a href a onclick function() deleteFruit(this parentNode parentNode) a innerText Delete td2 appendChild(a) tr appendChild(td1) tr appendChild(td2) tbody insertBefore(tr, input row) fruit name value else alert( Please enter fruit name ) function deleteFruit(row) row remove() Fruit Name Operation Apple Delete Lemon Delete", "question_description": "

Instruction<\/p>

- Modify all possible aspects of the JavaScript solution in the Quiz 2.html code by using jQuery.<\/p>

- Please use the code given to modify all possible aspects of the JavaScript solution in the Quiz2.html.<\/p>

Quiz 2<\/title> <script> function addFruit() { var tbody = document.getElementById(\"FruitList\").childNodes[1]; var input_row = document.getElementById(\"InputRow\"); var fruit_name = document.getElementById(\"fruit_name\");<\/p> <p>if (fruit_name.value != \"\") { var tr = document.createElement(\"tr\"); var td1 = document.createElement(\"td\"); var td2 = document.createElement(\"td\"); var a = document.createElement(\"a\");<\/p> <p>tr.id = fruit_name.value; td1.innerText = fruit_name.value; td2.align = \"center\"; a.href = \"#\"; a.onclick = function() { deleteFruit(this.parentNode.parentNode); }; a.innerText = \"Delete\";<\/p> <p>td2.appendChild(a); tr.appendChild(td1); tr.appendChild(td2); tbody.insertBefore(tr, input_row);<\/p> <p>fruit_name.value = \"\";<\/p> <p>} else { alert(\"Please enter fruit name!\"); } }<\/p> <p>function deleteFruit(row) { row.remove(); } <\/script> <\/head> <body> <table border=\"1\" width=\"480\" id=\"FruitList\"> <tr> <th>Fruit Name<\/th> <th>Operation<\/th> <\/tr> <tr id=\"Apple\"> <td>Apple<\/td> <td align=\"center\"> Delete <\/td> <\/tr> <tr id=\"Lemon\"> <td>Lemon<\/td> <td align=\"center\"> Delete <\/td> <\/tr> <tr id=\"InputRow\"> <td><input type=\"text\" id=\"fruit_name\"><\/td> <td align=\"center\"><input type=\"button\" onclick=\"addFruit();\" value=\"Add\"><\/td> <\/tr> <\/table> <\/body> <\/html><\/p>", "transcribed_text": "", "related_book": { "title": null, "isbn": null, "edition": null, "authors": null, "cover_image": null, "uri": null, "see_more_uri": "" }, "free_related_book": { "isbn": "", "uri": "", "name": "", "edition": "" }, "question_posted": "2024-09-10 10:18:00", "see_more_questions_link": null, "step_by_step_answer": "The Answer is in the image, click to view ...", "students_also_viewed": [ { "url": "\/study-help\/psychology-2e\/recognize-different-forms-of-psychotherapy-and-their-corresponding-goals-for-1986922", "description": "Recognize different forms of psychotherapy and their corresponding goals for treatment.", "stars": 0 }, { "url": "\/stagg-advertising-companys-trial-balance-at-december-31-shows-supplies", "description": "Stagg Advertising Companys trial balance at December 31 shows Supplies $8,800 and Supplies Expense $0. On December 31 there are $1,100 of supplies on hand. Prepare the adjusting entry at December 31...", "stars": 3 }, { "url": "\/study-help\/questions\/suppose-that-stock-as-return-in-the-past-8-years-9987944", "description": "Suppose that stock A's return in the past 8 years was 30%,40%,20%,25%,15%,10%,15%,10%. Find the arithmetic return and the geometric return of Stock A. Select the choice that is closest to your...", "stars": 3 }, { "url": "\/study-help\/questions\/question-3-of-16-view-policies-current-attempt-in-progress-1907856", "description": "Question 3 of 16 View Policies Current Attempt in Progress Paddu Company's budgeted sales and direct materials purchases follow. January was the first month of operations. Budgeted sales: January...", "stars": 3 }, { "url": "\/study-help\/questions\/what-is-the-speedup-of-the-basic-pipeline-with-branch-999709", "description": "What is the speedup of the basic pipeline (with branch predictions) shown in the Introduc- tion slides (Tsequential \/ Tpipelined) if 1\/5 of all instructions are conditional branches and 4\/5 of them...", "stars": 3 }, { "url": "\/study-help\/questions\/3you-borrow-10000-from-friendly-finance-for-four-years-with-1002598", "description": "3.You borrow $10,000 from Friendly Finance for four years with quarterly payments keyed to a 10% interest rate.$1,000 interest each year plus $10,000 equals $14,000.Spread over 4 years this loan...", "stars": 3 }, { "url": "\/study-help\/questions\/reword-chaukhats-should-be-seasoned-teak-wood-shutters-should-be-999858", "description": "reword Chaukhats should be seasoned teak wood. Shutters should be teaked wood 4.3cm thick penelled and partly glazed as required with additional wire gauge shutters. Allfitting should be brass. Doors...", "stars": 3 }, { "url": "\/study-help\/questions\/a-town-has-a-water-treatment-plant-with-capacity-to-1000619", "description": "A town has a water treatment plant with capacity to handle 253 gigalitres per year. The current demand for water per year is 210 gigalitres. However, this seems to fluctuate over time with an annual...", "stars": 3 }, { "url": "\/study-help\/questions\/determine-miller-indices-of-plane-x-z-23-90-1024066", "description": "Determine miller indices of plane X z 2\/3 90% a\/3", "stars": 3 } ], "next_back_navigation": { "previous": "\/study-help\/questions\/on-january-1-2020-sunland-corporation-issued-670000-of-9-10062635", "next": "\/study-help\/questions\/open-accounts-for-paidin-capital-from-treasury-stock-treasury-stock-10062637" }, "breadcrumbs": [ { "name": "Study help", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers" }, { "name": "Computer Science", "link": "https:\/\/www.solutioninn.com\/study-help\/questions-and-answers\/computer-science" }, { "name": "Databases", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/computer-science-databases" }, { "name": "Instruction - Modify all possible aspects of the JavaScript solution in the", "link": "https:\/\/www.solutioninn.com\/study-help\/questions\/instruction-modify-all-possible-aspects-of-the-javascript-solution-10062636" } ], "skill_details": { "skill_id": "656", "skill_name": "Databases", "parent_id": "8" } }