Question: I am trying to get a message when you click click me button that says yourname, you say you are age but I bet you

I am trying to get a message when you click "click me" button that says "yourname, you say you are "age" but I bet you are really "age + 10"

Also, when the number entered for age is 20 or greater the div id=noShow would show on website but if age is less than 20 just the message would display.

Trying to add into script and html but dont know how to get when you enter an age of 30 or greater into age input box, it will show the div id=noShow about trails and when an

age of less than 30 is entered, just the message will show.

I am having issues mainly with script and assume some in html5.

code is at bottom incase pictures are not good quality

Need A Vacation?
var $ = function (id) {
return document.getElementById(id);
}
var displayMessage = function ()
{
var myFirstName = $("firstname").value;
var myAge = $("age").value;
var myTrueAge = myAge + 10;
var myText = "Well " + myFirstName + " you say you are "
+ myAge + " but I bet you are really " + myTrueAge
$("mymsg").innerHTML = myText;
}
if (myAge
document.getElementById("noShow").innerHTML;
}
window.onload = function ()
{
$("mybutton").onclick = displayMessage;
}

Do You Need A Vacation?

How Old Are You?

First Name:

Enter Your Age:

You are over the hill! Time to Enjoy Nature in Luxury...

Pacific Trails Resort offers a special lodging experience on the

California North Coast. Relax in serenity with panoramic views of the
Pacific Ocean.
  • Private yurts with decks overlooking the ocean
  • Activities lodge with fireplace and gift shop
  • Nightly fine dining at the Overlook Cafe
  • Heated outdoor pool and whirlpool
  • Guided hiking tours of the redwoods
  • Your browser does not support the video tag.

    Pacific Trails Resort

    12010 Pacific Trails Road
    Zephyr, CA 95555
    888-555-5555

    I am trying to get a message when you click "click me"

    css

    body, html { font-family: Ariel, Verdana, sans-serif; background-image: url("background.jpg"); background-color: #E9F2E6; } h1 { color: #3399CC; padding: 10px; } h2 { color: #3399CC; padding: 10px; } p { padding: 10px; } #container { width:100%; background-color: #E9F2E6; box-shadow: 5px 5px 5px #888888; } li { color: #434343; padding-left: 15px; } video { float: right; padding-bottom: 40; }

    7:06 PM a 5/2/2017 C Chogg Apps Bookmarks Technology rulure colleges? Social school Dills Movies Gaines shop slouks Pumping Iron work Job search Piogramining Practiue Cakulaloivuulities Network testouu Do You Need A Vacation? How Old Are You? First Name: Enter Your Age Click Me

    Step by Step Solution

    There are 3 Steps involved in it

    1 Expert Approved Answer
    Step: 1 Unlock blur-text-image
    Question Has Been Solved by an Expert!

    Get step-by-step solutions from verified subject matter experts

    Step: 2 Unlock
    Step: 3 Unlock

    Students Have Also Explored These Related Databases Questions!