Markup:
<div class="foo">
<img src="loading.gif" class="loading" style="display: none;" />
</div>
Js:
$("div[class='foo']").click(function(e) {
e.preventDefault();
$(this).hide();
$(/* somehow select the loading img of exactly this div with class foo (not others) */).show();
});
...
Hello,
I have this at the moment: (the list is longer, but this is just one element)
<a href="Products.aspx"
onmouseover="onMouseOverCatDisplay("H5032.jpg", "Go to: cars");"
onmouseout="onMouseOverCatDisplay("DSC_0414_SS.jpg", "You see: bike");">Car</a>
and above the html, I have ...
In ASP.NET MVC'S JQuery intelligence I am getting methods such as "constructor", "toString", etc.
What do I have to do so that I get JQuery methods such as "css" and "click"?
If I just rightclick on a plain .htm file and open up Visual Studio, it works out-of-the-box:
...
i want to add data to a DB using a modal pop-up of a .aspx page.
so i have a grid with some SQL table data on employees. i want to have a button or link somewhere on this page to enable users to add records to the DB and then have the grid refresh to show the new data.
i have a addEmployee.aspx that i want to pop-up in a modal window ...
Hi I am using jquery to expand/collapse my links.For this I am using show(), hide() functions from jquery. If i collapse the link I see flickering for a second. Can anyone please suggest me how to avoid this plz.
Thanks
...
I need to update href value thorughout the page using jquery.
Say href="http://www.google.com?gsec=account" should be changed to href="http://account.google.com?gsec=account" how i can get this done.
...
Hey,
I need some help adjusting the logic of my jquery function. Here's how the function works:
There are two navs, the main-nav and sub-nav both of which are visible when page loads. If the window is scrolled past 375px (so that the sub-nav is no longer visible), there is a hover effect on the navigation which makes the sub-nav div sl...
Hi
I have a problem with JQuery in that when I use the draggable UI under lower resolution settings (480X320) the draggable element does not respond properly.
What happens is that when the user clicks onto the draggable video element it moves without problem, but if you click off and back on it again, the moment the mouse moves, the c...
hi,
i'm using the jquery star widget in our next project, it worked fine for other projects in the past, now it works, but the client has requested specific for these 2 facts:
1) the widget needs 5 stars, split in half as seen on the api 2 page on the website (http://orkans-tmp.22web.net/star_rating/#main-menu=2)
2) they want the big...
Possible Duplicate:
I need to update href value using jquery
I wanted to change the domain value of href using jquery.
If in the href="http://www.google.com?gsec=account" if i find gsec=account then i wanted to change only the domain value of href should be "http://account.google.com?gsec=account. There are other query string ...
Hi-
I am brand new to jQuery (and really javascript in general) and am trying to write a generic function that checks all text and select boxes on a page for input, returning 'true' if one or more boxes on the page contain at least one character and 'false' if not (the use is to disable a search button if there is no input). I've writt...
Essentially, on page load, I want a video to be hidden behind an image (I guess this can be done with positioning divs).
I would want the video to begin to play when a user clicks on the image the video is hidden behind. This should be possible with a bit of JavaScript/CSS.
What I'm really asking is does anyone know of any examples of ...
Hello.
I'm writing a web-application for the first time. Everything was tested in Chrome. And now i begin testing in IE8 too and found that my application have problems with positioning and jquery script.
Here is a problem: when i change something in css (for example positioning), my web page in IE8 isn't change. I pushed refresh button ...
Im trying to filter table rows in an intelligent way (as opposed to just tons of code that get the job done eventually) but a rather dry of inspiration.
I have 5 columns in my table. At the top of each there is either a dropdown or a textbox with which the user may filter the table data (basically hide the rows that dont apply)
There a...
im trying to scroll the window when a certain divs are clicked,the problem i have got is it works perfectly in safari but in IE 6 and above there seems to be flickering.The screen also flickers when you try clicking in the scroll area of the window !! I cant figure out what the problem is.Could some one help please?
Jquery Code :
...
I have a drop down <select> list of pages in a site, however the structure is quite complicated to go in the list e.g.;
Home
Projects
Category 1
Item 1
Item 2
Item 3
Category 2
Item 4
Item 5
Item 6
Category 3
Item 4
Item 5
Contact
Accessibility
Sitemap
What I want to do is say "select a page to link to" and then present the ...
Hi, on my website I have a sidebar panel, which has two tabs that when clicked switch the content beneath. on the <li> for these tabs I have a jQuery click() event to switch the tabs. Please see the screengrab for what I mean
This was all working fine until our designer wanted the RSS feed link within the <li>, so now when I click on ...
I have a dynamically populating table and would like to add a mouseover feature
(mouseover="style.backgroundColor='#E1EBF4'")
to my table row while the data row is being added.
function addRecentData(data) {
$('#newTable tr:last').after('<tr><td class="name"></td><td class="id"></td></tr>');
var $tr = $('#newTable tr:last');...
I'm using youtubin to embed youtube videos on a secure page. It works whenever I specify a jQuery selector:
<script>
$(function() {
$('#foo a').youtubin();
});
</script>
<div id="foo">
<a href="http://www.youtube.com/v/kUini08olkQ&amp;hl=en_US&amp;fs=1">YouTube Video</a>
</div>
It doesn't work when I just call youtubi...
hi, i have structure like this
<table><tr><td></td><td><input type="button" name="button"></td></tr></table>
<script>
$('tr').click(function(){window.alert('tr');})
$(':input').click(function(){window.alert('input');})
</script>
when i click on the button, tr click event also called. is there any way to disable click event on parent ...