jquery

Did the plugin stop working in jQuery 1.9?

Plugin jQuery DropKick 1.0.0, console errors: Uncaught TypeError: Cannot read property 'msie' of undefined Uncaught TypeErro ... k. Here is the source of my edits. Обновил source code with amendments (the plugin worked visually, but not functionally.)

Hide\show div

I have the nth number of such elements on the page: <div class="main"> <a class="text">Любой текст</a> < ... pt and slightly adjusted, but the problem is that it opens the buttons of all elements. How do I change it? Link to JSFiddle

Image preview when loading in input type= " file"

I try to make a preview of the image when loading in input type="file" On stackoverflow there are examples of solving this pr ... v> </div> </div> </fieldset> </form> Help me figure out what the reason is.

Selecting the select element using jQuery

I have this problem: There is a Select: <select id="make" name="make"> <option value="0"> ------------------ ... esult, please help me how to make the element with value='Mazda' visually selected, of course it should be selected for real.

JQuery: appendTo

Greetings again. $(document).ready(function() { $("#add").click(function() { $('<p><input type="text" pl ... $("#remove").click(function() { alert("removed"); }); }); #remove is not executed, please tell me what is wrong?

How do I remove an element from a page using jQuery or JS?

<div class="fox-copyright" style="padding:10px 0 !important;text-indent:0 !important"><a target="_blank" title="Joom ... , detach () and empty (), but nothing works. Why is that? How do I delete the div.fox-copyright element and all its contents?

Clearing a string in javascript: removing spaces, tabs

Is it possible to clear the string by removing duplicate spaces, tabs, and line feeds, in general, so that the string is like ... for this, but it will then remove just spaces at the end and beginning of the string. Maybe there is a plugin, or a function?

Styling the drop-down list

There was a question about the styling of the list of option elements There is a drop-down list with 6 option elements inside ... "title_shops">Answer 6 content</p> </div> </div> </div> Https://jsfiddle.net/yvd6e5uc/1/

Whether they are the same.fadeOut () and css ("display", " none")

I started working with jQuery. When I click the button, the div "pops up" on top of all the other elements of the page, and I ... .fadeOut and. css () (which in my case) do one thing and the same thing?) P.S if anything, don't swear, I'm just a newbie)

Slider: how to make a selection of half a block?

Hello. I made a script that displays the number of selected circles. But I need to make it possible to select the gender of t ... this).attr("src","http://test.epic-mine.ru/3.png"); } }); $('#info').append(id); }); });

Get value from input

Hi! You need to get the value of the filled field: var mailData = $("input.for-mail").val(); If the value is filled in manua ... the inspector, the entered value is not written to value at all for some reason). How do I get the data entered in the input?

Iterating through an object (array) using jQuery. each

Good afternoon! I write a book on working with trade offers (TP) 1C Bitrix. Previously, I prepared a small array containing ... _ARRAY when describing getSkuID() in the function body? I would read something about it, but I don't even know where to dig.

animate - how to change the background-color

Hello, tell me why it is not possible to change the css property background-color with animate in JQuery? Jquery code: $("#on ... id green;"> </div> Properties such as height, width changes without problems, but the background color can not.

Copy a multidimensional array to JavaScript

You need to make a copy of the array that will not reference the old array. I tried using jQuery, but still when changing a new array, the values in the old one change. array_1 = $.extend(true, [], array_2);

jquery add get parameter

When selecting select, the script constantly adds a parameter, how can I add it once and just change it for the next changes? ... val = $("#sort_by").val(); history.pushState(null, null, window.location+'&sort='+val); });

Apply.css in jQuery to a pseudo-element:before

Good afternoon. Is it possible in jQuery to apply the .css() method to a pseudo-element added via :before? div:befor ... idth: 73px; height: 23px; opacity: .8; //хочу менять opacity до .2 при наведении на div } <div>Блок</div>

Ajax AutoComplete

Guys, please help, it is not possible to output data from the request for autocomplete. Using this plugin: https://github.com ... encode($res); } Writes the following in the console an error: GET http://site.ru/user/null?query=%D0%BA 404 (Not Found)

Jquery find the id of the parent diva

There is such a construction: <div id='1' class="parent_div"> <div class="div_child">Текст</div> </ ... to this function for another diva, then I will again get the same id, instead of the one that corresponds to the other diva.

Pop-up window (self-written or fancybox?)

It is worth fancybox now. You need a plugin for the subscription form. When you click on the link, a pop-up window with the f ... efficient to push the subscription form into display:none and display it when you click on the link using position: absolute?

validate js validation fails with ajax

I have an ajax request, and validation (validate js plugin). The validation itself does not work. Help please. It works here, ... Goal ('svyaz_to'); return true;" class="btn btn-block">Перезвоните мне</button> </form> </section>