I am having trouble applying a style that is !important. Ive tried:
$("#elem").css("width", "100px !important");
This does nothing, no width style whatsoever is applied. Is there a jquery-ish way of applying such a style without having to overwrite cssText (which would mean id need to parse it first etc)
Edit: i should add that i hav...
I'm sure we've all done this before:
<a id="232" rel="link_to_user" name="user_details" class="list hoverable clickable selectable">
USER #232
</a>
But then we say, oh my, I need more ways to store tracking info about this div!
<a id="232-343-22" rel="link_to_user:fotomeshed" name="user_details" class="groupcolor-45 elements-698 list...
Hi,
I've got a web page with a jqGrid that uses am xmlreader to populate itself with data that is spat out by a RoR service. The page loads fine in firefox and safari. In Chrome however I get a blank grid. Only when I change the sort order by clicking on the columns does it populate.
<html>
<head>
<title>LocalFx</title>
<l...
I have been looking for a JQuery grid to work with ASP.NET MVC and I can't find any free ones. Surely someone must have written an open souce one??
...
I have created an image rotator
But its not proper in internet explorer. What is wrong in my js?
Thanks in advance
...
I have a hidden div (#contactArea) above another div. When I click the link, the #contactArea opens up. When I click it again, it closes back up. It all works nicely, except in IE7.
The two divs are transparent, so they overlap. I have no idea why this happens, or why doesn't it happen on other browsers. It just about feels like IE7 is ...
I need some guidance on how to add a validation method to the jquery validate plugin. I've gathered that i need to use the plugin's addMethod() function, but how exactly to have it do what i need... Here i am!
My form 's first question is a radio input choice. Each radio input, if selected, shows a sub-question of several checkboxes.
...
From the "should be simple, but..." files: Trying to get started with jQuery UI. Went to the site, used their custom builder thingy to assemble the parts I need, made myself a custom theme using the Theme Roller, downloaded the zip file thus produced, unzipped it on my local drive. Ok, so I have 37 folders, 311 files, and a total of 2.4 ...
I'm using JQuery's draggable(); to make li elements draggable. The only problem is when the element is dragged outside its parent, it doesn't show up. That is, it doesn't leave the confines of its parent div. An example is here: http://imgur.com/N2N1L.png - it's as if the z-index for everything else has greater priority (and the element ...
I have a div and I would like to auto scroll it every 5 seconds, can I do that with JQuery?
...
Is there a way to use multiple jQuery and jQuery UI Libraries in the same source?
I know about noConflict and using multiple jQuery Libraries with this method, however is it possible to use multiple jQuery UI Libraries?
Essentially I would like to use jQuery 1.2.6 and jQuery UI 1.6 together for a certain portion of the page that only w...
Give the following on a page:
<iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor" style="width: 100%; height: 100%;" id="hi-world">
<p><span class="tipoff" title="System tooltip for search engines">Download now</span></p><p>adasdads</p><p>a</p><p><span class="tipoff" title="System tooltip for se...
Does anyone know of any JQUERY ToolTip plugins that work well in an iFrame? I tried qTIP and it's positioning is all off.
Would appreciate any suggestions.
Thanks
...
<!doctype html>
<html>
<head>
<title>JQuery Cycle Plugin - Example Slideshow</title>
<style type="text/css">
.slideshow { height: 232px; width: 232px; margin: auto }
.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }
</style>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.go...
I have this function
function onclickRowRecord(recordID) {
$.ajax({
type: "POST",
url: '/file/to/post.to.php' ,
data: {recordID:recordID},
success: function(data) {
//how to post this to function howToPost(recordID) the recordID
}
});
}
function howToPost(recordID){
alert(recordID);
}
so how...
is there any way to "wait for user action on popupmenu" after an element is clicked ?
for example:
person A clicks on link.
javascript menu popups asking what the user would like to do with this link.
user should not be allowed to click anywhere else but the popup menu.
after user clicks an action on the menu, the default browser actio...
I have javascript code that's loaded by 3rd parties. The javascript keeps track of a number of metrics, and when a user exits the page I'd like to send the metrics back to my server.
Due to XSS checks in some browsers, like IE, I cannot do a simple jquery.ajax() call. Instead, I'm appending an image src to the page with jquery. Here's t...
I am trying to set an event on a div whos parent has a class="classA classB"; My css is being applied but i cant figure out how to specify it with jquery. How do i set an event with jquery for this class combination
$('[class=classA classB]').live('click', function () {
alert('a');
});
html
<div class="classA classB">......
I'm got a site that has a long list of tweets, and as you scroll down the right column follows you down, showing stats on the tweets. (See it in action at http://www.grapevinegame.com . Click 'memorise', then 'skip' to get to the list page. Works in Safari and Chrome).
I'm using jQuery to update the top-margin of the right column, incre...
Hi,
I've got some Jquery functions that I keep in a "custom.js" file. On some pages, I need to pass PHP variables to the Jquery so some Jquery bits need to remain in the HTML documents. However, as I'm now trying to refactor things to the minimum, I'm tripping over the following:
If I put this in my custom.js:
$(document).ready(functi...