jquery

Toggle Problem in live event of jquery

Hi, I am stuck with this can anyone help me... here is the html <tr class="appendvalue"> <td colspan="2"> <asp:DropDownList ID="ddlSource" runat="server"></asp:DropDownList> <asp:TextBox ID="txtSourceValue" runat="server" CssClass="hide" /> <a href="#" class="t12">add static value</a> </td> here is the jquery $(...

how to acess parent window object using jquery?

Hi how to acess parent window object using jquery? This is my Parent window variable , I want to set its value after closing child window . $('#serverMsg').html('some text here'); thanks ...

Make a html page with content() and jquery

Is there a way to make an html page from the contents() object?? for example iterate over $('body').contents() object and make a output like this: <body> <div>text<a href=#></a></div> <p>%^$$</p> .... </body> thanks!!! and sorry for the english! ...

JQuery - accessing a VAR in a function which I will need in another function?

Ok so in my html/js i have a form that updates based on the users previous selection. On the last stage i have a select menu where the user will choose their city. I have stored the value of the selected item in my Options list with the id #myCity to the following. ('#myCity').change(function(){ var CityValue = $("#myCity").val(); ...

jquery: stop everything happening at once

Hi, I am just learning jquery, and it took me ages of browsing the jquery api site to create these few lines of code. What I want to do is use ajax to load content from another page and put it into an existing div. currently, the code works but when I click on a link all the steps get executed in one go, so its doing the load() function...

jQuery fancybox how to call it in my own DIV?

Hi I want to display the fancybox in my own <div> because I need another position for the output. The fancy JS is creating a <div> structure in my HTML wich i cant manipulate over CSS. This structure I want only display in <div id="xyz"> for example. Please help? ...

How to do a carousel in jQuery with a circular movement on mouse over?

I was wondering if anybody has an idea if this is possible. I wanna do what the jcarousel does but with a mouseover event instead of click. I want that once we have the mouse on the arrow the images keep rotating in an infinite loop. I know how to do the movement and the mouseover event.I would also know how to do this working without th...

Changing values of children elements

Hi, I have parent and child elements structure: <div id="container"> <input type="hidden" id="child-1" value="1" /> <input type="hidden" id="child-8" value="1" /> <input type="hidden" id="child-9" value="1" /> <input type="hidden" id="child-3" value="1" /> </div> I need to select children and change their values. The result sh...

jquery get father of element

Hi all, I've got an element which resides inside a div. I'd like to get the div by the child's ID, is this possible? if so how? Thank you! ...

jquery loop each first td in every row

I have the following jquery that adds a onclick to every image within a table $("#listtable tr td img").each( function(intIndex) { $(this).click(function() { $(this).load("/Admin/ChangeIdeaStatus/" + $(this).attr('rel')); }); } ); This works ok, however I would like to modify it so that only an image ...

wait for each jQuery

I'm trying to make a div fade in/out that's within an each statement. The problem is that next item is called before the fade in/out is complete. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"></script> <div id='one'>one</div> <div id='two'>two</div> <div id='three'>three</div> <sc...

Jquery - when attaching to certain events, original event handlers stop working

Hi all, I tried being specific in the title, I hope it explained what I meant. I've got several control in my web page. Some of them are quite complex, built by other people, and some of them I cannot change. Now, I wanted to add my own functionality to certain controls, say... User hovers over a button and show him an image. Problem i...

jQuery/Javascript auto tab index lock/select?

I have a simple display project and want to cut out the mouse from the equation, the page only has one field (a search field) and I want the browser to be locked into to the field remove the need for a mouse while keeping it user friend for those who don't know how to maneuver without a mouse. Can it be done with jQuery/Javascript? I do...

jQuery how to delete or hide all html except selected <div>

Given the following markup: <div class=foo> <!-- comments --> some junk content <input type=button value=click /> <div class=bar> good content </div> more junk content <div class=bar> more good content </div> even more junk </div> I need to remove everything except the bar divs, so I would end up with only: ...

Cant find the correct selector for jquery form click

This is a very basic question. I am building a website using the google custom search api to display search results on my page. By default, google displays the search-results box on the page (without any actual results) at all times, and the list is populated when the user clicks the search button. My goal is to hide the search results b...

Using arrow keys with jQuery scrollTo

Hi, I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class "new" when a link is clicked. However, I would also like to be able to use the arrow keys to scroll up and down to the next/previous divs of the same class. I have looked all over the internet but have been unable to find out how...

Help interpret/implement "Copy/Paste from Excel to a web page" answer?

Can I get some help interpreting / implementing the answers at: http://stackoverflow.com/questions/2006468/copy-paste-from-excel-to-a-web-page/2006789 please? This was the most useful answer Google found for "Paste Excel to Web Page/Form" -- seems perfect but I can't get to work. (Requirement is to give users an option to pre-populate ...

Returning data from jQuery ajax request

I'm trying to get a function to perform an ajax query and then return the interpreted JSON as an object. However for whatever reason, once this request is performed, the data is only accessible from within the function. function getCacheImage(direction) { jQuery.ajax({ url: json_request_string, ...

How to get a selection option in jQuery

I have a question about jQuery. Let's say I have a dropdown list: <select id="Positions" name="PositionType"> <option value="Manager">Manager</option> <option value="Janitor">Janitor</option> <option value="Cook">Cook</option> <option value="Cashier">Cashier</option> <option value="Other">O...

Wrapping content with jquery

How can I use wrap around the content with the placeholder div using jQuery. So I can turn this - <div class="placeholder"></div> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div class="placeholder"></div> <div c...