Click here to Skip to main content
15,887,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my code and i don't know where my mistake..

HTML
<div class="col-lg-12" style="text-align: right; margin-bottom: 15px;">
                        <a href="#" class="btn btn-primary" data-toggle="model" data-target="#myModel" style="width: 100px">@WhiteWhaleLanguage.Edit</a>
                        <div class="model fade" id="myModel">
                            <div class="model-dialog">
                                <div class="model-content">
                                    <div class="model-header">
                                        <h3 class="model-title">Change your password</h3>
                                        <a href="#" class="close" data-dissmiss="model">×</a>
                                    </div>
                                    <div class="model-body">
                                        ---------
                                    </div>
                                    <div class="model-footer">

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


and i use bootstrap.js in layout:-
HTML
<link href="/Content/bootstrap.min.css" rel="stylesheet">
<script src="/Content/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="/Content/bootstrap/js/bootstrap.min.js"></script>


What I have tried:

How i solve the problem this popup?
Posted
Updated 28-Oct-17 3:55am
v2

1 solution

There are typos in the code

data-toggle="model" 
should be
data-toggle="modal" 


In fact, look like all the "model" should be "modal". Refer to example below.

CP Modal - JSFiddle[^]
 
Share this answer
 
v2
Comments
Karthik_Mahalingam 28-Oct-17 21:35pm    
5, good catch
Bryian Tan 28-Oct-17 22:12pm    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900