Comments (4)
please add the attributes data-toggle="modal" data-target="#modal_komplain"
to the trggering element and remove the triggering through script.
Please refer http://getbootstrap.com/docs/4.1/components/modal/#live-demo for more details.
from staradmin-free-bootstrap-admin-template.
Please share the HTML code of the element which triggers the modal.
from staradmin-free-bootstrap-admin-template.
I just use $('#modal_komplain').modal('show');
from staradmin-free-bootstrap-admin-template.
please add the attributes
data-toggle="modal" data-target="#modal_komplain"
to the trggering element and remove the triggering through script.Please refer http://getbootstrap.com/docs/4.1/components/modal/#live-demo for more details.
I also have this problem with modal, I am used to open them from codebehind using an hidden button and a small piece of jscript, like this:
<button type="button" style="display: none;" id="btnModal" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#modalRegole">Launch demo modal</button>
<script type="text/javascript">
function ShowModal() {
$("#btnModal").click();
}
</script>
and this code behind call: ClientScript.RegisterStartupScript(Me.GetType(), "alert", "ShowModal();", True)
This works on all my other bootstrap project except the one where i'm using sb admin template.
I need to edit what the modal will show by changing its components texts and visibility and I don't know how to do this without using code behind. So I don't want to open them using attributes data-toggle and data-target
from staradmin-free-bootstrap-admin-template.
Related Issues (20)
- Question about license HOT 1
- (14502:7) Gradient has outdated direction syntax. New syntax is like `to left` instead of `right`.
- How to integrate with Asp.net core MVC HOT 1
- Installation error: python2 not found HOT 4
- Cannot run and error is Task function must be specified HOT 1
- right side dropdown menu item not found in small screen HOT 1
- main.js size is more than 28mb HOT 1
- Add pagination to the tables HOT 1
- RTL Version HOT 1
- Collapsed Sidebar HOT 2
- no index.html HOT 1
- icons not showing HOT 4
- How to call partials html in other pages? HOT 1
- How to rebuild the styles?
- cant add another dropdown menu in sidenav
- Can't open modals from code behind
- Text wrapping in a table
- Migrating to BS 5
- x
- In demo-dropdown is not working .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from staradmin-free-bootstrap-admin-template.