Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
1
votes1
answer49
viewsWhy did my jQuery stop accepting $ but this accepted "jQuery"?
With that error code <script> $(function () { $('[data-toggle="popover"]').popover({ html:true, animation: true, sanitize: false }) }) var slide_old = "slide_img0"; var slide = "efeito_slide";…
-
1
votes1
answer912
viewsHow to send data from a form with attached file to an email with PHP and AJAX?
I’m trying to send a file using the function mail() of php, problem that I am doing the tests and the email is sent but will not the file and the email is sent totally uncompromised, which may be?…
-
1
votes1
answer131
viewsHow to convert a jQuery object to html?
Hello, I am trying to create a download button after the page content is deleted. I’m using jQuery to create the button, but I need the html to use as the "Document.write()" parameter. They can…
-
1
votes1
answer242
viewsREACT - Datepicker error
Good morning! I’m trying to use datepicker components in React. I’m using materialize, but even the component of it is generating the same error. I am currently trying to use the…
-
1
votes1
answer64
viewsJavascript and conditional switch, problems when saving a dynamic value
Well I’m still learning a little bit more about javascript, and I’m using a little bit of jquery lately, this code is one of my most recent works, it’s a code editor. How it works? First, we have a…
-
1
votes1
answer139
viewsFullcalendar in Bootstrap Modal
I’m using fullcalendar in the Bootstrap modal, but the colors of the day of the week turn white, but when I take the cursor off the site, the colors turn black. Look at: When the cursor is inside…
-
1
votes1
answer341
viewsSlide on Bootstrap does not work
good afternoon or good night. Someone could check what’s going on in my code, insert a Carousel according to the Bootstrap 4 document and even then it doesn’t work, Carousel isn’t doing the image…
-
1
votes1
answer81
viewsFunction in Jquery stopped working after inserting Datatable into page
A few months ago, a friend developed a small system to help me, although the code was confusing, it worked perfectly until the plugin called Datatable was added. Code working normally (although…
jqueryasked 5 years, 5 months ago Guilherme Henrique 13 -
1
votes2
answers43
viewsHow do I show a select according to the previous option?
I have two selects, User Type and User. User Type has 2 option(Global and Individual). The idea is that when the client clicks on the Individual option, appear below the select User listing all…
-
1
votes1
answer206
viewsLoad page contents to href for modal
ola personal I started programming in js and jquery currently I am very beginner and I am with a small problem I am trying to show the content of an outside page in a modal but it shows only link of…
-
1
votes1
answer17
viewsjQuery does not find td generated by Ajax
I have a dynamic table fed via Ajax that returns the following code through a foreach: <tr> <td hidden value='{$conteudo['contId']}' id='contId'> {$conteudo['contId']} </td>…
-
1
votes3
answers95
viewsHow can I copy content from a div to a hiddenfield?
I have a div that displays the user’s IP, in which this address is picked up by Javascript. However, I need to use the IP in Code-Behind. The idea would be to copy the contents of the div to a…
-
1
votes3
answers65
viewsSelect the next TD within a Loop
How do I access the next text td within the iteration of loop? I need to check the next text TD(of the next TR) after the TR current of loop. In the first row of td (administration), ie I want to…
jqueryasked 5 years, 4 months ago Demetrius Fernandes 79 -
1
votes1
answer230
viewsHow to run an Alert only once in an Asp.net MVC View
I have a project in Asp.net mvc and in my view has an Alert that runs whenever the page is loaded (it closes automatically). The problem is that every time I make a Submit and the view is reloaded,…
-
1
votes1
answer824
viewsBootstrap Datetimepicker Moment.js
I am trying to implement Bootstrap Datetimepicker in my project that is with version 4.3.1 of Bootstrap. The problem is I don’t know how to do it. I downloaded from this site:…
-
1
votes1
answer24
viewsClear text coming from Laravel
I am with the following scenario, using the Plugin summernote for a textarea with the settings: <textarea id="summernote" name="editordata">{{$termos->termos}}</textarea> It returns…
-
1
votes1
answer811
viewsScrollbar only with buttons or div
Hello, I need to create two buttons that have the same function as a scroll, but without bar, I want to click and hold the button down the page, and when just a click, scroll down the page. The same…
-
1
votes1
answer55
viewsDifference of the same code with and without for()
I am mounting a jQuery code with dateTimePicker Bootstrap. I’m tried a problem which is this: when I do it in a more extensive way it works perfectly, but when I try to do it in a more simplified,…
-
1
votes1
answer383
viewsUsing the Mail API with AJAX
I’m practicing ajax using the post office API. I did it! But these 2 situations happen: 1- Gets stuck in the Else block, so if I put an invalid zip code after listing a valid one shows nothing, nor…
-
1
votes1
answer20
viewsPass ID value through Toggle
I have the following toggle: It works perfectly, but I would like to put it in a way that works individually for each record that comes from the comic book, but I’m not getting it. Look at: CSS…
jqueryasked 5 years, 4 months ago user24136 -
1
votes1
answer296
viewsHow to add a vertical line in Google Chart?
Problem: I’m not able to insert the vertical line in the google chart. Solution: I would like to add a line on the right side of the graph according to the image. HTML code: <script…
-
1
votes1
answer15
viewsFordata picking up empty form
Good evening. I am trying to get the files via formData but an empty form is coming. Follows the codes: <form action="<?=base_url()?>clientes/addNewFile" id="form_addNewImage"…
-
1
votes1
answer115
viewsAdd variable to textarea editor
I’m using the https://summernote.org/ to create a text editor. At the time of editing, it is necessary to add variables, which at the time of printing will be exchanged for the value corresponding…
-
1
votes1
answer623
viewsonClick fill in input
I wanted to make a menu of options (Buttons) on my site, and when clicking on them is loaded a value to the input. I tried to make a script that when clicking the button, the field below was filled…
-
1
votes1
answer214
viewsHow do I sort my datatable id downwards?
I need to list all id decreasingly on my jQuery datatable. Which is the best way to it? <script type="text/javascript"> window.properties = <?= json_encode($ci_properties) ?>;…
-
1
votes0
answers22
viewsjQuery - ASP.NET - Fields not accepting values with comma separation and ignoring decimal places
For example, if I type 52,400 the system saves as 52,40 or if I type 5,000, it saves 5,0. I’ve tried everything, but I can’t understand why the system is suppressing these decimal places. My code…
-
1
votes1
answer219
viewsSelect row in table to delete
I created a warning system, where I want to give the possibility to delete the alert if desired. I have the following table and delete button: <button type="button" name="Delete"…
-
1
votes3
answers400
viewsBlock sequences of input numbers
Do not allow the filling of numbers in sequence with spaces or without spaces, to avoid adding phone numbers. Avoid sequences such as: 99999999999 99 9 9999 9999 and any other number having more…
-
1
votes1
answer191
viewsI am unable to insert submenus in the dropdown menu
Problem: I’m not being able to create a dropdown menu with submenus. Ex: When clicking the profile on the left will open a drop menu the idea would be when clicking the settings open new options.…
-
1
votes0
answers76
viewsWhy does Bootstrap class have no effect on Cloned elements?
I have a problem where I have a product DIV and in the select of the product name, I have a selectpicker where I can search the name of the product among all existing. But when the user adds another…
-
1
votes1
answer51
viewsAllow editing of input
When selecting the form of payment, the default rate is filled in, but this rate must allow editing it. I need to maintain the structure of my function, but at the same time allow the rate to be…
-
1
votes2
answers638
viewsjQuery Mask does not work on elements created dynamically
I’m using the jQuery Mask to format currency in a form, and in this form it is possible to add several values dynamically and for this I duplicate the div that contains the input, only when…
-
1
votes0
answers118
viewsdatepicker calendar opens and closes when you click the form Submit button
Hello. I got a problem here. I have an aspnet mvc form with c# that has two datepicker: <form id="formBuscar" action="PaginaDeDeAcertosDaQuestao" class="form-horizontal box3">…
-
1
votes2
answers74
viewsicheck plugin does not disable all checkbox
Boas, I have the problem that I have 6 checkbox but can only select a maximum of 2 before submitting the form. What happens is that by clicking on the third box it gives the message and clears the…
jqueryasked 5 years, 4 months ago Sergio Teixeira 85 -
1
votes2
answers67
viewsselect input according to previous option
Eai, someone who knows jquery or js, how do I show a text field according to the option of a previous select? And if the user chooses no contact, how do I "hide" the input? Thank you !…
-
1
votes1
answer132
viewsAdd link in <a onclick
The page is this The menus are made with Anchors and I wanted to add a link to redirect to an external page in exactly the same place. I tried to add one but without success, I have knowledge of…
-
1
votes0
answers77
viewsTwo Ajax requests
I need to make two Ajax requests. one for my own database. the other is via API. the first is to query in my database, if the CNPJ, informed is already registered, the second is for an external URL.…
-
1
votes1
answer124
viewsChange Dropdown name to list item names
Good morning Guys! All beauty? I’m having a huge doubt in dropdown. I wanted to understand how to leave the name of mine dropdown with the list elements name when selected and when the page is…
php javascript jquery codeigniter bootstrap-4asked 5 years, 3 months ago Diêgo Correia de Andrade 390 -
1
votes1
answer487
viewsChange placeholder by clicking the radio
I’m new to JS, and I would like to click on a radio and the placeholder would change according to the radio clicked, I did this way but it doesn’t work. Here is my Modal: <!-- Button to Open the…
-
1
votes1
answer253
viewsDrag and drop + Scroll
I am developing an application one I have 2 lists with droppable areas and a side menu with draggable items. When I use scroll the position of the item I’m dragging is changed by adding scroll…
-
1
votes1
answer139
viewsError setting cookies with expiry date with javascript "When browsing session ends"
I have the following code: function createCookie(name,value) { name = "testeeee"; value = "conteudo do teseeee"; var date = new Date(); date.setTime(date.getTime()+(720*60*60*1000)); var expires =…
-
1
votes1
answer36
viewsHow to insert the error return into a specific part of html?
JAVASCRIPT $(document).ready(function(){ $('#parcelas').on('change', function(){ var parcela = this.value; var entrada = document.getElementsByName("entrada")[0].value; $("#bodyBoletos").html("");…
-
1
votes1
answer606
viewsTranslation of html page
I am creating a Single page Application and in this project I am doing the translation of texts. Javascript var arrLang = {…
-
1
votes1
answer47
viewsJquery selectors - Find and swap Css class of an element
I am creating a Timeline and would like to apply an iterativity when I click on each card/node. I would like to click (expand card) on the link in the tag <a> whose css class is…
-
1
votes1
answer27
viewsImplement jquery script in modal box
My modalbox doesn’t run my jquerry script $(document).ready(function() { var audioElement = document.createElement('audio'); audioElement.setAttribute('src', '/teste/typewriter-2.mp3');…
-
1
votes1
answer48
viewsAutocomplete works, my problem is with jquery switches for dynamic fields
I ask for the help of someone to teach me how to make Jquery selector work with dynamic fields... I create lines in the form from an event that defines the amount of lines the note will have... from…
jqueryasked 5 years, 3 months ago Alexandre Rosas 33 -
1
votes1
answer116
viewsJquery waits for the function to end to display an image. How to resolve?
Oops, I’m doing a project of a memory game that requires an image to be changed at the time of a click using Jquery. The game is based on clicking on divs, and display the images inside them, two at…
jqueryasked 5 years, 3 months ago Gabriel Arruda 45 -
1
votes4
answers194
viewsExchange images with Jquery
Guys, I’m trying to change an image at the click of the button and I’m not getting it, jquery returns me this error: I’m trying to make the exchange using the date attribute. My Jquery code:…
-
1
votes1
answer26
viewsHow to make the Morris Chart pick up information from an Asp.Net Core api
I have the following api coming from a controller called Vehicles Controller. // GET: api/Veiculos [HttpGet] public async Task<ActionResult<IEnumerable<Veiculo>>> GetVeiculos() {…
-
1
votes2
answers444
viewsPrint all pages of pagination in Datatables
Hello, I have a system in which, on one of your pages, I display the data that comes from a database table. Since to make this view I use the Datatables plugin. The problem is that when I try to…