Question: HTML Create a div with an id called main-content and a class called container. INSIDE this div create the following elements: Create an h1 with
HTML
Create a div with an id called main-content and a class called container. INSIDE this div create the following elements:
Create an h1 with a class called title.
Create a p with a class called description.
Create a h3 with a class called subtitle.
Create a p with an id called current-paragraph and a class called description.
JavaScript
Write the following named functions:
Create a function called welcome that takes no parameters. It should return the string "Welcome developer".
Create a function called number that takes no parameters. It should return the number 3.
Create a function called stringFx that takes no parameters. It should return the string "string".
Create a function called boolFx that takes no parameters. It should return the boolean true.
Create a function called nill that takes no parameters. It should return the value null.
Create a function called parameter that takes a parameter. It should return the parameter.
Create a function called addThree that takes 3 parameters. It should return the sum of the three parameters.
Create a function called writeHtml that takes no parameters: Inside this function yo should:
Select the title class and use the text method to add the string 'This is the title of the Page'
Select the subtitle class and use the html method to add the string 'New Subtitle'
Select the current-paragraph id and use the append method to add the string 'This paragraph has been appended'
Select the main-content id and use the append method to add a new h4 element with the text New element
Car Registration Form
Create a form using Bootstrap with a title called Car Registration. The form should have the following inputs:
Create an input with a label called Model.
Create an input with a label called Make.
Create an number input with a label called Year.
Create an input with a label called VIN.
Create a button called Register.
Create a button called Cancel.
JavaScript
Use a JQuery event method that calls the function called writeHtml when the Registerbutton is clicked.
Create a function writeHtml that takes no parameters. This function should write to the DOM the values of the Make, Model, Year and VIN entered in the form using an unordered list. Once the car appears in the DOM you should clear the form.
Use a JQuery event method that calls the function called hideCar when the Cancelbutton is clicked.
Create a function called hideCar that takes no parameters. This function should hide the car that shows up when you click the Register button.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
