Search
 
SCRIPT & CODE EXAMPLE
 

HTML

javascript popup form

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#editCat">
  Launch demo modal
</button>

<div class="modal"  id="editCat"  >
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content" >
            <div class="modal-header">
             <!--head-->
            </div>
            <div class="modal-body"  >
                <form #editform="ngForm" id="editform" (ngSubmit)="onEditFormSubmit(editform)">
                    <div class="form-group">
                        <label for=""><h4 style="color:  #124f67;">Catagory Name: </h4></label>

                        <input required type="text" id="edit" ngModel name="name" placeholder="Change Catagory Name" class="form-control">
                        <button class="btn "  type="button" (click)="addSubCatagory()">Add_Sub_Catagory</button>          
                    </div>
                    
                </form>

                
            </div>
            
        </div>
    </div>
</div>
Comment

html popup form


<html>
<body>


<p>Here we use the prompt() method for Popup Forms</p>

<button onclick="popupfunction()">Click</button>

<p id="popup"></p>

<script>
function popupfunction() {
  let person = prompt("Please enter your name", "");
  if (person != null) {
    document.getElementById("popup").innerHTML =
    "Hello " + person + "!";
  }
}
</script>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: agregar texto debajo de una imagen html 
Html :: html image size 50 percent 
Html :: spaces html 
Html :: html link anchor external page 
Html :: angular select ((ngmodel selected)) 
Html :: favicon x shortcut icon 
Html :: react-render-html 
Html :: twig array keys and values 
Html :: html video element 
Html :: print view fields in unformatted.html.twig drupal 
Html :: multiline comment html 
Html :: dashboard bootstrap button 
Html :: delete code html 
Html :: how to make html element center of the screen 
Html :: make checkbox required 
Html :: blobs fish 
Html :: html default file name a tag 
Html :: how to import jquery modular 
Html :: align button on bottom of div 
Html :: href tag in html 
Html :: onclick on input type checkbox field 
Html :: html form using http 
Html :: marquee tag html 
Html :: autocapitalize html attribute 
Html :: the <video tag 
Html :: edit text on click html5 
Html :: same form two submits 
Html :: group checkbox html 
Html :: html tooltip 
Html :: how to customize button in html 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =