Category : bootstrap-modal

I’m working with modal bootstrap and bootbox.js At below demo, when you open modal and the click delete, modal will show. Now my question how to set modal-backdrop after I click delete button? $(‘.delete’).on(‘click’, function() { bootbox.dialog( { message: “Are you sure you want to delete this?</b>”, title: “<i class=’glyphicon glyphicon-trash’></i> Delete”, buttons: { success: ..

Read more

I have an add-row button. On its click I am adding a row into my datatable. $(‘.add-row’).on(‘click’, function() { id = 0; name = $(‘#name’).val(); email = $(‘#email’).val(); cno = $(‘#cno’).val(); bdy = $(‘#bday’).val(); t.row.add([ name, email, cno, bdy, ‘<button class ="btn btn-danger del">Delete</button>’ + ” + ‘<button class="btn btn-warning upd" data-id="’+$(‘#example’).DataTable().rows().count()+’">Edit</button>’ ]).draw(false); $("#name").val(”); $("#email").val(”); ..

Read more

The below code is not working when the button is located in bootstrap modal popup. Using the below Javascript in code behind to open a page in NEWWINDOW. Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView2.SelectedIndexChanged Dim url As String = "Blank.aspx" Dim sb As New StringBuilder() sb.Append("<script type = ‘text/javascript’>") ..

Read more

I am using some JavaScript code in a Shiny app in order to style a textAreaInput inside a modal. My code looks like this: library(shiny) codeJS <- " document.addEventListener(‘DOMContentLoaded’, function(event) { function init (inputID) { var text = document.getElementById(inputID); text.style.color = ‘blue’; }; init(‘textField’); })" ui <- fluidPage( tags$script(HTML(codeJS)), actionButton(inputId="openModal", label="Open modal") ) server <- ..

Read more

What is happening currently: I have 3 image tags: <img id="myImg" th:src="@{/img/image1.png}" alt="html/css"> <img id="myImg1" th:src="@{/img/image2.png}" alt="html/css"> <img id="myImg2" th:src="@{/img/image3.png}" alt="html/css"> Each image tag has a different id. When the first image is clicked it will open up a modal which will blow up the image and give some extra styling like darkening the backgorund ..

Read more

i try to generate praytime with alarm, but… this my code <script type="text/javascript" src="assets/js/PrayTimes.js"></script> <script type="text/javascript"> var date = new Date(); // today prayTimes.tune( {maghrib: +176} ); var times = prayTimes.getTimes(new Date(), [-6.1333, 106.75, 10], +7); var maghrib = [‘maghrib’]; var wakmag = times[maghrib]; </script> and <?php date_default_timezone_set(‘Asia/Jakarta’); $time=date(‘H:i’); $alarm="<script>document.write(wakmag);</script>"; echo" $time <br/><br/> Alarm $alarm"; ..

Read more