jquery

Loop CSS typewriter effect and change text

笑着哭i 提交于 2021-01-28 09:34:51
问题 I need to loop through the CSS typewriter effect, and change the text for each loop. Here is the code I'm using for the typewriter effect. I'm guessing I need to use javascript, but I am not sure how to go about this. Any ideas on how I could do this? .typewriter h1 { overflow: hidden; /* Ensures the content is not revealed until the animation */ border-right: .15em solid orange; /* The typwriter cursor */ white-space: nowrap; /* Keeps the content on a single line */ margin: 0 auto; /* Gives

How to set value in .net tag helper attribute using javascript?

蓝咒 提交于 2021-01-28 09:15:30
问题 I am trying to set parameter value read from a textbox on the page to this link: <a asp-action="RetrieveEmailRecipients" asp-route-clientnumber="getClientNumber()">Retrieve Email Recipients</a> And I have Javascript down somewhere else at the bottom of the page. But appreatly this is not the right way to pass value to MVC action method's parameter. What parameter ClientNumber read in action is whatever the string/value in asp-route-clientnumber, in this case the value is getClientNumber().

Codeigniter Ajax gets 404 Error

不打扰是莪最后的温柔 提交于 2021-01-28 09:12:59
问题 I wrote an application on my local machine that works perfectly. I am using XAMPP so it is running Apache. When I uploaded the application to my ubuntu test server, I am getting a 404 error on the ajax call and I am honestly perplexed. I am using CodeIgniter 3.1.8. The controller is definitely there and the .htaccess is working fine on my local machine. I checked the case of the filename for the controller and it is fine. Here's the javascript of the ajax call: function step2(){ var canShow =

How to set multiple selected values for multi-select picker?

杀马特。学长 韩版系。学妹 提交于 2021-01-28 09:10:43
问题 I have the following multi-select picker which is populated with data. I want to be able to set multiple selected values that I get from the database. <div class="form-group col-md-6 col-lg-6 col-sm-6"> <label>Choose Skills</label> <select id="DDLSkills" name="selValue" data-live-search="true" data-style="btn-default form-control" class="selectpicker form-control" data-size="5" multiple data-max-options="2"></select> </div> This is the code that I use to populate the multi-select picker: $('

how to open different form on different radio button

﹥>﹥吖頭↗ 提交于 2021-01-28 09:06:26
问题 i have three radio button, i want that my one radio button checked by default and form "a" remains open untill the user click on another radio button. The form below change with respect to the radio button; Here is the code: <label><input type="radio" name="colorCheckbox" value="red" checked> red</label> <label><input type="radio" name="colorCheckbox" value="green"> green</label> <label><input type="radio" name="colorCheckbox" value="blue"> blue</label> <div class="form-a" > </div> <div class

Bootstrap 4 Smart Scroll

跟風遠走 提交于 2021-01-28 08:58:56
问题 I'm using this basic tutorial to show/hide a standard BS4 navbar on scroll, and it works great for desktop. However, on mobile the navbar is acting a little strange when scrolling down, then going back to the top. Once back to the top, the navbar hides again. I suspect the issue has something to do with scrollTop() but can't seem to troubleshoot this one. Here's my JS: if ($('.smart-scroll').length > 0) { // check if element exists var last_scroll_top = 0; $(window).on('scroll', function() {

get HTML of dynamically created table rows

蓝咒 提交于 2021-01-28 08:54:16
问题 This question has been asked numerous times but never really answered specifically without the use of a third party application. I have dynamically created rows in a table that already has 2 static rows. The rows are created fine and appended to the :last and I can get/pull/push the .val .text ect... but cannot get the full html output as seen in 'view page source' of most browsers. Even examples like: document.getElementsByTagName('html')[0].innerHTML; don't retrieve the dynamically created

Create an iframe then append data to it with jQuery

痴心易碎 提交于 2021-01-28 08:50:18
问题 I am trying do some modification to an greasemonkey userscript to implement a feature I need. The code is like showAddress:function(addrString,type) { this.addrBox=$('<div id="batchPublish"></div>') .append('<div id="batchHeader"></div>') .append('<div id="batchContent" style="float:left;clear:both"></div>'); ......... var batchContent=this.addrBox.find('#batchContent') .append('<pre width="300" style="text-align:left" id="batchedlink"></pre>'); this.addrBox.find('#batchedlink').css({'width':

How can I get the value from a cell in a table?

喜欢而已 提交于 2021-01-28 08:48:56
问题 I have read all the related posts and used them with no success. Obviously I'm not a javascript expert. I had tried with option, and selectedItem, but don't know how to extract the select object to use it. This is a fraction of my code, I hope you can help me. <div class="card-body"> <table class="table" id="products_table"> <thead> <tr> <th>Descripción</th> <th>Suaje</th> <th>Cantidad/etiq.</th> <th>Importe</th> <th>Sustrato</th> <th>Sustrato $</th> <th>Acabado</th> <th>Acabado $</th> <th

Sweet Alerts - Queue form

人走茶凉 提交于 2021-01-28 08:48:54
问题 Greetings I am wondering if its possible to get the input data from the - Chaining modals (queue) example. It returns only a generic array of values, would it be possible to get something like field name and value out of it? There are no solutions out there as Iam aware of. swal.mixin({ input: 'text', confirmButtonText: 'Next →', showCancelButton: true, progressSteps: ['1', '2', '3'] }).queue([ { title: 'Question 1', text: 'Chaining swal2 modals is easy' }, 'Question 2', 'Question 3' ]).then(