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
answer106
viewsManipulate event with Jquery when form and link are generated automatically
Jquery does not work when the form or a link is automatically generated. Example below: This example works. <a id='btnTreatInvite' class='btn btn-primary btn-sm fa fa-check'…
-
1
votes2
answers1117
viewsTake URL link and modify CSS
I would like to take the URL link and with it, modify the class property flechaSubmenu of display:none for display:block. I thought I’d do with CSS: .classe a[href^="/categoria/categoria2/"] {…
-
1
votes2
answers632
viewsSet model property in javascript variable
I have an Action Usuario that displays user details among other actions that can be performed. I also have a code javascript that needs in some part to set a model property in the javascript…
-
1
votes2
answers1260
viewsConsume Webservice from an external link
While consuming a webservice an external URL via the link in the browser http://api.postmon.com.br/v1/cep/30640-240 returns the following JSON message: {"complement": "from 9201 to the end -…
-
1
votes1
answer75
viewsHow to migrate my website to Requirejs?
Currently I concateno all my Avascripts with Grunt sending the minified file to the page, but I know that a best practice is to use Requirejs to mudularizar everything, but I do not know how to…
-
1
votes1
answer798
viewsWhat are the pros and cons of using jquery in mobile development?
I’m starting in hybrid development using Cordova (with visual studio) and in my research on javascript frameworks, I have found many people using Angularjs, and I was surprised that I can’t find…
-
1
votes3
answers1117
viewsValidate the form without sending it
I’m trying to validate a form to verify that everything is at least filled out. The problem is that I am not submitting the form as I cannot reload the page. I’m just capturing the event by…
-
1
votes1
answer63
viewsabout ajax vs assigned events
When the document is ready, $(document).ready, I send an AJAX request to a PHP page that generates a table that I put in my body, but,... below this ajax request, I have functions that handle events…
-
1
votes1
answer101
viewsClassic slider for sliding/dragging
I wanted to make a slider, from right to left and vice versa, but I’m not able to increase the number of px, everything is working badly. HTML: <div id="next"></div> <div…
-
1
votes1
answer52
viewsWhy is there such a "(jQuery)" at the end of Function?
I wonder why there is this instruction (jQuery) at the end of function. jQuery(function($){ // alert('Oi'); $(".widgets-holder-wrap").removeClass('closed'); })(jQuery);…
jqueryasked 9 years, 4 months ago Marcos Vinicius 7,188 -
1
votes1
answer80
viewsAdapt function to queryselectorall
I’m trying to adapt a function that used to be used only with Queryselector, but I need to adapt it to get all the Divs (Queryselectorall). Look at: var draggableEl =…
-
1
votes1
answer192
viewsWhat’s the best way to add a dynamic banner to another site?
The situation is, I’m developing a system where users can create dynamic and customized banners with our products and display on their websites. The data of each created banner is in our database.…
-
1
votes1
answer239
viewsClearinterval does not work
I have a script that does an Ajax Post from time to time. upgrade(); $.ajax({ type: "POST", url: "processar.php", success: function(resposta){ $("#resposta").html(resposta);…
-
1
votes1
answer117
viewsProblems cloning a checkbox (bootstrap plugin)
http://jsfiddle.net/yusy7zr8/2/ I’m using a bootstrap plugin: http://www.bootstrap-switch.org/ I’m trying to clone this checkbox, but the checkbox is not being checked (for on and off) after being…
-
1
votes1
answer1952
viewsQuery the database send and use javascript
My difficulty is after sending to java script how to separate each record: Example: In my code I’m running this function: $culturas=array(); $resultado=mysqli_query($conexao,"select *from…
-
1
votes1
answer237
viewsJavascript does not accept variable value
I am trying to make a function to call a GRID that will be different depending on the parameter I pass. This is the function: $JQuery(document).ready(function() { $.ajax({ url:…
-
1
votes1
answer1028
viewsProblem with Uppercase and Lowercase in Angularjs
People followed the example of a script in stackoverflow.com as follows the link below: [https://stackoverflow.com/questions/19040732/filter-php-list-with-angularjs][1] I happen to be having…
-
1
votes1
answer175
viewsHow to create a popup with a dropdownlist?
How do I create a popup with a DROPDOWNLIST in Asp.net C# "MVC" or Javascript/Jquery ? You can call this popup through a ActionLink ?…
-
1
votes1
answer253
viewsHow to use jquery variable value
I am having trouble using the value that is inside my variable when I use it jquery var id_pais = $('#endUF option[value=id_pais]').text(); $('#endUF option[value=id_pais]').remove(); $('#endPAIS…
-
1
votes0
answers214
viewsChange image name, upload file jquery
Good morning Gentlemen, Someone who has already worked, or who understands the code of the jquery file upload plugin THAT ONE Could you tell me how I change the image name before uploading? Example:…
jquery jquery-ui jquery-mobile jquery-validate jqgridasked 9 years, 3 months ago Jeferson Kaefer 435 -
1
votes1
answer211
viewsPosition insert bar in jquery editable div
I’m using the summernote API as an email editor, it creates a div to be used as a textarea. The only reference it leaves is the "note-Editable" class. I made a code to replace a word with a tag with…
-
1
votes2
answers568
viewsJavascript-enabled checkbox for controller
I have a group of checkboxes that are generated from the BD, therefore their id will be different. In my case 3 checkboxes are generated: HTML: <input type="checkbox" id="[email protected]()"…
-
1
votes1
answer194
viewsShow badge at the edge of a button
I have a button and a badge with the value being updated with Jquery, I want the badge to be at the edge of the button. Does anyone know how to set up?
-
1
votes2
answers938
viewsInsert the json return inside Divs separated by <div> </div>
I got a comeback like JSON I’m trying to insert into the div, but it’s inserted all on top of each other. <!-- DIV que vai receber as informações --> <section> <div…
-
1
votes1
answer23
viewsProblem with effect on multiple Lis
I’m 4 li, 2 of them are appearing on the site, and other two will appear only when I click on any of these other two, so you understand better, follow my code: $(".membrosClick").click(function() {…
jqueryasked 9 years, 9 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer451
viewsHow to verify the existence of the class in this case of jQuery?
How can I check if the class exists in a variável jQuery? jQuery(function($) { // Captura o atributo para manipulá-lo var atributo =…
jqueryasked 9 years, 3 months ago Marcos Vinicius 7,188 -
1
votes1
answer47
views(Backbonejs) Run a View after server return
In my application I have 2 Views. One of them is sending the data to the server when the client clicks on Submit. The other needs to wait for that reply and run to work with the 'updated' data'. How…
-
1
votes1
answer153
viewsChange select option to URL
I have a select with five option. I want it to check the link the user is and as this link, it selects an option. My HTML: <select name="segmento" id="segmento" class="basic"> <option…
-
1
votes1
answer81
viewsSend data from one table to another
And the next thing I know, I have an Entity called the Post where there’s a record of a post and I have an Entity called the Machine. The goal is: Having a table like this where we create a machine…
-
1
votes0
answers20
viewsPushsharp Catch Registerid
I’m having a doubt, how can I catch the RegisterID(DeviceId) for javascript so that I can use in the future pushsharp?
jqueryasked 9 years, 3 months ago Eduardo Gimenes 11 -
1
votes1
answer6757
viewsnew Date() without time zone
I have to send a date javascript for my controller through the FullCalendar. In my action, I’m getting one DateTime and need to send through the javascript file with the new Date(minha_variavel).…
-
1
votes1
answer429
viewsHide and show button in a Datatable with jquery
I have to show or hide a button inside my Datatable as an ajax function returns. I can already hide (hide all by default) and already know when to show the button, the problem is that I can not show…
-
1
votes0
answers541
viewsDialog to take only the local path of a folder
I have a field in an html form, where the path (path) of a Windows folder (EX: C: pasture1 pasture11) should be inserted, where this field is of the type text even. However, to make it easier, I…
-
1
votes2
answers861
viewsAccent with Javascript Resource
I have an Asp.Net MVC project where I use Source, but I’m having problems with accentuating other special characters. Example: I have the following Resource: Name | Value MSG_SESSAO_EXPIRADA |…
-
1
votes1
answer60
views$. inArray() return not expected
Array cookiesplit contain exactly this content: _utma=246244038.1458519878.1422527074.1423248864.1423253252.8, __utmz=246244038.1422527074.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none),…
-
1
votes1
answer152
viewsTake data after gridComplete
I need to get the full json returned by the jqGrid query, as I do? ... gridComplete: function(data) { console.log(data); //não funciona });
-
1
votes3
answers94
viewsSimple click on Jquery does not work
I want that when I click on span to ul appear. The correct thing is to use the Parent, nay? $(".produtosMenu li span").click(function() { $(".produtosSubmenu").parent().addClass("dpb"); });…
jqueryasked 9 years, 9 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer83
viewsIgnore data type check when using $.inArray
I’m having the following problem with the jQuery: When I try to check an existing value within an array, using the method $.inArray, it is returning an unexpected result. Example: I want to check…
-
1
votes3
answers3091
viewsWhy doesn’t getJson work?
My file select-menu.json is like this: { value: "1", descricao: "1" }, { value: "2", descricao: "2" }, { value: "3", descricao: "3" }; And I’m trying to get it that way:…
-
1
votes1
answer1113
viewsFilter table data through checkbox
I have the following checkboxes: <div class="row smart-form"> <section class="col col-1.5"> <label class="toggle"> <input type="checkbox" name="checkbox-toggle" rel="Natureza"…
-
1
votes1
answer42
viewsHow to get the item that is in drag in a Jquery Drag&drop?
I want to know how to get the item that is in drag and so I can change some properties of it. Follow the example below: According to the above example I need to change the item I am dragging and not…
-
1
votes2
answers168
viewsTake all src contained in the document and transform into array in jquery
Assuming I have 10 img elements on my page. I would then like to create an array that contains the attr-src of each img contained on that page. How do I perform such a task?
jqueryasked 9 years, 2 months ago ivan veloso 2,900 -
1
votes1
answer26
viewsPredetermined messages
I have a textarea where I need to add predefined texts that are my links. When clicking on them, add the content of ID the current position of the cursor on textarea. I need to do this with jQuery.…
-
1
votes1
answer82
viewsDestroy tag javascript
I have an Asp.Net MVC project structured as follows: On the page Home there are several links to others Actions and Controllers, and they return a PartialView that assembles all the content into one…
-
1
votes1
answer693
viewsDelete session value from a variable
I have a button reset to delete values from a form. It turns out that I wanted to delete the session variable in PHP and I can’t do it, it can be by jQuery. This is the code I have:…
-
1
votes1
answer69
viewsJquery slide plugin
This js is all part of next,Prev and auto of my slide, but there is a "however": when I click on Prev, it comes back and then advances in the same action. What is wrong with the logic of this…
-
1
votes1
answer170
viewsWait for images to upload to be shown
I would like to make a system that when the page is requested will show a GIF of load waiting for the images to upload as soon as they load the GIF and the images are shown. Someone knows how to do…
-
1
votes1
answer301
viewsPostback checkbox Asp.net with Switchery plugin
I’m putting together a list of records in a table with Asp.net. I create a checkbox for each line to perform a postback action every time the checkbox is checked or unchecked. I use the Switchery…
-
1
votes1
answer1052
viewsReplace Checkbox with Image
Hey, I don’t know if this is what I want. As you can see on this site: http://eyosongive.us/lolk/ When clicking on an image it is selected, I would like a similar code or one where when clicking on…
-
1
votes1
answer55
viewsMenu control
I have a menu in a Bundle and have want to add to that menu a part that is in another menu, but I want those menus to appear both on all pages. The main menu is this: {#…