Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to make a div appear onclick

function showDiv() {
  document.getElementById('sign-in').style.display = "block";
}
Comment

how to make a div appear onclick

<a class="btn btn-default log-bar" href="#" role="button" onclick="showDiv()">Login</a>


<div id="sign-in" class="login" style="display: none;">
  <form>
    <div class="row">
      <div class="col-md-3">
        <div class="form-group inline-form">
          <input type="email" class="form-control" id="email" Placeholder="email">
        </div>
      </div>
      <div class="col-md-3">
        <div class="form-group inline-form">
          <input type="password" class="form-control" id="pwd">
        </div>
      </div>
      <div class="col-md-3">
        <div class="checkbox">
          <label><input type="checkbox"> Remember me</label>
        </div>
      </div>
      <div class="col-md-3">
        <button type="submit" class="btn btn-default ">Submit</button>
      </div>
    </div>
  </form>
</div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: node js server 
Javascript :: js check if array of dictionaries contain 
Javascript :: javascript extract date from string 
Javascript :: build apk from react native 
Javascript :: jquery get duration video tag 
Javascript :: update object in array if id exists else append javascript 
Javascript :: react uselazyquery and usequery 
Javascript :: how to send a request to a web server javascript 
Javascript :: if between two numbers javascript 
Javascript :: sort strings javascript alphabetically 
Javascript :: Passing components as children in react 
Javascript :: how to download file from link in react 
Javascript :: copy to clipboard reatjs 
Javascript :: js is undefined or null 
Javascript :: vue call method after render 
Javascript :: how to get output of console.log in a file in javascript 
Javascript :: prisma query log 
Javascript :: convert a new date standard to a yyy-mm-dd format in javascript 
Javascript :: circular progress for react 
Javascript :: difference between library and framework in javascript 
Javascript :: javascript object without undefined values 
Javascript :: simple alert program in javascript 
Javascript :: merge 2 json objects js 
Javascript :: react click outside 
Javascript :: how to set empty date in javascript 
Javascript :: jquery has parent with class 
Javascript :: Difference in push and navigate in react Navigation 
Javascript :: canvas rectangle rounded corners 
Javascript :: js find value in array 
Javascript :: Find the stray number 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =