Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

modal in bootstrap 4

$('#myModal').modal('toggle')
Comment

show modal in bootstrap 4

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo">Open modal for @mdo</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@fat">Open modal for @fat</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@getbootstrap">Open modal for @getbootstrap</button>

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">New message</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">×</span>
        </button>
      </div>
      <div class="modal-body">
        <form>
          <div class="form-group">
            <label for="recipient-name" class="col-form-label">Recipient:</label>
            <input type="text" class="form-control" id="recipient-name">
          </div>
          <div class="form-group">
            <label for="message-text" class="col-form-label">Message:</label>
            <textarea class="form-control" id="message-text"></textarea>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Send message</button>
      </div>
    </div>
  </div>
</div>
Comment

modal bootstrap 4

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo">Open modal for @mdo</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@fat">Open modal for @fat</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@getbootstrap">Open modal for @getbootstrap</button>

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">New message</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form>
          <div class="form-group">
            <label for="recipient-name" class="col-form-label">Recipient:</label>
            <input type="text" class="form-control" id="recipient-name">
          </div>
          <div class="form-group">
            <label for="message-text" class="col-form-label">Message:</label>
            <textarea class="form-control" id="message-text"></textarea>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Send message</button>
      </div>
    </div>
  </div>
</div>
Comment

PREVIOUS NEXT
Code Example
Csharp :: bootrap modal 
Csharp :: how to add a list to observablecollection in c# 
Csharp :: The terminal process failed to launch: Path to shell executable "dotnet" is not a file or a symlink. 
Csharp :: C# .NET Core linq Distinct 
Csharp :: how to cjeck if a string has a word c# 
Csharp :: remove carriage returns from string c# 
Csharp :: audio source pause unity 
Csharp :: c# stop loop 
Csharp :: c# writeline list 
Csharp :: c# date 
Csharp :: unity set material 
Csharp :: c# generate random number 
Csharp :: c# array of strings 
Csharp :: casting string to enum type 
Csharp :: c# groupby date 
Csharp :: how to run code without a gameobject unity 
Csharp :: C# .net core convert string to enum 
Csharp :: unity create a child object 
Csharp :: wpf set color in code 
Csharp :: how to move a gameobject to another object 
Csharp :: key value pair in c# 
Csharp :: javascript close page after 5 seconds 
Csharp :: how to set the frame rate unity 
Csharp :: unity get child gameobject 
Csharp :: how to get the hour on c# 
Csharp :: linq query select top 1 c# 
Csharp :: linq from select 
Csharp :: What is the difference between String and string in C#? 
Csharp :: movetowards unity 
Csharp :: c# consuming post rest service 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =