current position:Home>Let's make a weekly plan, learn the concept knowledge on Monday and Tuesday, practice on Wednesday and Thursday, summarize experience on Friday, rest and entertainment on Saturday and Sunday.

Let's make a weekly plan, learn the concept knowledge on Monday and Tuesday, practice on Wednesday and Thursday, summarize experience on Friday, rest and entertainment on Saturday and Sunday.

2022-07-14 20:26:32Front end of dada Science

.box {
      width: 300px;
      height: 300px;
      background: yellow;
      border: 1px solid #cdcdcd;
      display: none;
      }

input {
      width: 245px;
      height: 30px;
      outline: none;
        }

<input type="text" placeholder=" Please enter the week to query today's plan ( for example : Monday )" id="text">
    <button id="btn"> Inquire about </button>
    <div class="box" id="box"></div>
var oBtn = document.getElementById("btn");
        var oBox = document.getElementById("box");
        var oText = document.getElementById("text");
        oBtn.onclick = function () {
            // alert(1);
            oBox.style.display = "block";
            if (oText.value === " Monday " || oText.value === " Tuesday ") {
                oBox.innerHTML = " Today, learn about ideas ";
                oText.value = "";
            } else if (oText.value === " Wednesday " || oText.value === " Thursday ") {
                oBox.innerHTML = " Today, it's time for enterprises to practice ";
                oText.value = "";
            } else if (oText.value === " Friday ") {
                oBox.innerHTML = " Sum up experience today ";
                oText.value = "";
            } else if (oText.value === " Saturday " || oText.value === " Sunday ") {
                oBox.innerHTML = " Rest and entertainment today ";
                oText.value = "";
            } else {
                oBox.innerHTML = " Input error , Please pay attention to the format and re-enter ";
                oText.value = "";
            }
        }

copyright notice
author[Front end of dada Science],Please bring the original link to reprint, thank you.
https://en.bfun.fun/2022/195/202207130541483166.html

Random recommended