Displaying 1-7 of 7 results.
Resolved: jquery click doesnt work on ajax generated content
posted by admin on September 4, 2016
I am using $(".button").on("click", function(){ });

to click to a button which is on a container but then an ajax call is done and the content gets updated with new stuff and then when i try to click .button it wont work... nothing will get returned when i click the button.

I even tried

$(".button").live("click", function(){ });


$(".button").click(function(){ });
Read more
Wiki: Equalize Heights of Divswiki
posted by admin on August 3, 2016

var maxHeight = 0;

if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }

Read more
Resolved: jQuery check if an HTML element is empty using
posted by admin on April 25, 2016
I'm trying to call a function only if an HTML element is empty, using jQuery.

Something like this:

if (isEmpty($('#element'))) {
// do something
Read more
Wiki: Attribute Equals Selector [name=”value”]wiki
posted by admin on April 12, 2016
Description: Selects elements that have the specified attribute with a value exactly equal to a certain value.

jQuery( "[attribute='value']" )
attribute: An attribute name.

value: An attribute value. Can be either an unquoted single word or a quoted string.


<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>attributeEquals demo</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<input type="radio" name="newsletter" value="Hot Fuzz">
<input type="radio" name="newsletter" value="Cold Fusion">
<input type="radio" name="newsletter" value="Evil Plans">

$( "input[value='Hot Fuzz']" ).next().text( "Hot Fuzz" );


Finds all inputs with a value of "Hot Fuzz" and changes the text of the next sibling span.Read more
Resolved: How to change css display none or block property using Jquery?
posted by admin on April 12, 2016
Resolved: JavaScript jQuery add attribute to links, which is not belong to website and locate to another resource
posted by admin on March 11, 2016

<a href="http://isystems.am">sadsa dasd as ds</a>
<a href="http://forum.isystems.am"> sd s f f d f</a>
<a href="http://autoservice.am"> sd s f f d f</a>
<a href="http://classyluxury.ru"> sd s f f d f</a>
<a href="http://polusportpoluklassika.ru"> sd s f f d f</a>
<a href="http://classystyle.ru"> sd s f f d f</a>

I want to add attribute to my all links, which is not locate to my website. I want to open another links in new window, not in self window. I want to do it after page will be loaded.Read more
Resolved: Sort divs bases on element's data attribute
posted by admin on December 22, 2015
If I have several divs:

<div data-sort='4'>div4</div>
<div data-sort='8'>div8</div>
<div data-sort='1'>div1</div>
<div data-sort='19'>div19</div>
<div data-sort='12'>div12</div>

Actually I want to sort divs by data attribute by sorting ASC and DESCRead more