Jump to content

steve.dimo

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

187 profile views

steve.dimo's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Here's what I wrote 👇👇 Function billingFunction() { If ( document.getElementById ('same'). checked) { document.getElementById ('billName'). innerHTML = 'shippingName'; document.getElementById ('billZip'). innerHTML = 'shippingZip'; } }
  2. add the JavaScript code needed to enable auto-complete on this form.. whenever the checkbox is checked, the code should automatically copy the values from Shipping Name and Shipping Zip into the Billing Name and Billing Zip. if the checkbox is unchecked the billing name and the billing zip should go blank. <p> Shipping Information </p> <label for = "shippingName" > Name </label> <input type= "text" name = "shipName"id = "shippingName" required > <br/> < label for = "shippingZip" > Zip code: </label > <input type="text" name= "shipZip" id = "shippingZip" pattern = " [0-9]{5}" required > </br> <input type = "checkbox" id= "same" onchange = "billingFunction()" /> <label for= "same" > Is the billing information the same? </ label> <br/> <br/> <p> Shipping Information </p> <label for= "billingName" > Name: </label> input type= "text" name= "billName" id ="billingName" required> <br/> <label for= "billingZip"> Zip code: </label> <input type= "text" name= "billZip" id ="billingZip" pattern = "[0-9]{5} " required > <br/> <input type= "submit" value= "verify"/>
  3. I'm still studying JavaScript and what I'd like to know how to code this If I have: <div id="image"> hover over an image below to display here </div> <img class="home" src="Dr.jpg" onmouseover="upDate (this)" onmouseout= "unDo" Alt="my school photo" > </img> If I hover on the image the text in the div changes together with the background-color Thanks
  4. I'm still studying this and what I'd like to know is this If I have <div id="image"> hover over an image below to display here </div> <img class="home" src="Dr.jpg" onmouseover="upDate (this)" onmouseout= "unDo" Alt="my school photo" > </img> If I hover on the image the text in the div changes together with the background-color Thanks
  5. How to code this in JavaScript. When onmouse hover on an img the Alt text appears in a div, and the div background changes too. Thanks in advance
×
×
  • Create New...