jquery

jquery, how to check if a specific ID is a child of an other id?

Hello, I have a specific id ("mysubid"), now I want to check if this element (this id) is in a child path of an other id ("mymainid"). Is there an easy way to do this or will I go upwards, element by element, to see if the element is in a child path. By child path I am talking about something like this: A > B > C > D So D is in the...

jqGrid not displaying a single row

Our jqGrid is working well - if we return > 1 row everything works. But.. if we return just one row, the grid does not display any data and the nav bar says 1 of NaN. Very weird - any ideas?? This is the JSON being returned for the single row: {"records":"1","page":"1","total":"1","rows":{"cell":["ECS","D","201009","","0","ABCD","0"...

Stopping .click() listener until fadeIn() is finished in jQuery

$('#div1_button').click(function() { $('#div0').fadeOut(function(){ $('#div1').fadeIn(); }); }); When a user clicks div1_button the previously selected div0 fades out and div1 fades in. If the user goes click crazy and clicks div2 before div1 is finished fading in then div2 begins to fade in and eventual...

Is there a correct directory structure for a jQueryUI installation?

At the moment, I have jQuery and jQueryUI installed like this: js/jQuery/ js/jQueryUI/ I'm getting an error that seems to be related to loading CSS files. Is there a 'proper' way to include jQueryUI - should it be a subfolder of jQuery, for example? ...

How do you add extra html after an element with jQuery?

I'm aware of jQuery's append() which appends html inside the selected element. I want to add more html after the selected element. For instance: <a href="/somewhere/">Somewhere</a> I want to add the html <h3>Hello</h3> after the above to become: <a href="/somewhere/">Somewhere</a> <h3>Hello</h3> How can you achieve that in jQuery...

Embedd third party js libraries on a custom control library. Yes or not?

I wonder what's the best approach for using third party js libraries on a control library. If the library uses (let's say) jquery and jquery-ui seems wrong to me to include those on the control library since, if the page using the controls already reference them, they will downloaded twice (the embedded version and the non-embedded vers...

How to solve jQuery UI and TableGear conflict?

I'm using Tablegear and jQuery UI's date picker in my site and somehow only the one I declare first is working. I'm not sure but it can be a conflict issue, can't be? Here's the code: http://jsfiddle.net/nc3Rs/ Notice that I added the TableGears1.6-jQuery.js as a resource. As soon as I remove this resource the date picker begins to wor...

Apply class to TD if it has a rowSpan attribute

Looking for a really simple way in jQuery to add a class to a TD when it has the rowspan attribute. Any ideas? ...

select box styling - css/jquery

I've been hunting around to see if I can find a simple CSS or jQuery solution to achieve the following styling for a select box: There are various items on SO such as the one here, but these come close but the issue seems to be more with styling the "arrow" section of the select box. Many of the samples I've found style the whole of ...

How can I hide the navigation bar with Jquery?

Hey guys, I am trying to hide the navigation under the footer using Jquery. I mean, I want to show the navigation until it reaches footer stage. Then, I want to hide it. How can I do it? or Should I use z-index in state of jquery? Code and example: http://jsfiddle.net/yn8r4/1/ I would appreciate any kind of help. Thanks! NOTE ...

Doing an onchange event on a field in the parent window using jquery

Hi all, I am not sure if this can be done. In the parent window, I have the following line, <input type="hidden" name="myField" id="myField" value=""> This parent window would open a pop-up window, where it would allow the users to make their own selections. Upon clicking submit in this pop-up window, it would assign the selection ...

Jquery: add one line to each class

I have class dot and have html code like that: <span class="dot">Text1</span> <span class="dot">Text2</span> <span class="dot">Text3</span> I want to add to each element who has class dot additional text automatically. For example, add &#8226; code that it would be <span class="dot">&#8226; Text1</span> <span class="dot">&#8226; Tex...

JS Nav Hover action http://barnumdesign.com/x/about

Hello I'm trying to attain a nav hover effect like this: http://joseavillez.pt/ Except with the nav background full. any guidance? i've tried using the following code to target it but i'm not sure what's wrong: JS Function function menusHoverFunction() { $('#LeftNav ul li a').each(function() { $(this).css({'backgroundPositio...

Text editors are not working in javascript div pop up

Hi, when i try to integrate the social engine with ckeditor ( social engine style is pop up update ) i load the ckeditor in the pop up but it does not focusing the text area i think the javascript files are conflict with each other is any one kanow please tell me the solution ...

jQuery: trying to get the input value.

Hi, i'm trying to obtain an input value with this: var $a = ('#telephone_number').val(); alert($a); But nothing, any idea? telephone_number is the id of the input. Regards Javi ...

Dynamically enable/disable links w/ jQuery?

I have some links displayed on a page, that I would like to enable/disable based on other events on the page. Is there a way to do this w/ jQuery? ...

How to overlay a picture with another one?

What's a good method to overlay a picture with another one in HTML and CSS or jQuery? ...

Undefined jQuery value when trying to correct JSLint complaint: "Don't make functions within a loop"

Within a jQuery ajax function data supplied to the callback function on success is defined with success: function (data) { ... but this makes JSLint unhappy ("Don't make functions within a loop"). If I follow the suggestion in http://stackoverflow.com/questions/3037598/how-to-get-around-the-jslint-error-dont-make-functions-within-a-...

PHP & JQuery question.

I was wondering is there a way I can have my page display a delete message after the php code has done the deletion and then have Jquery fade out the message after about 5 seconds. If so how would my JQuery code look like? An example would help me out. ...

How to highlight links in the div on mouseover.

Hi, I have div with a few links spread out in the content. I would like to highlight all the links in the div onmouseover. Is there jquery solution that works in FF, IE and chrome. Thanks. ...