How come it throws an " Uncaught ReferenceError: $ is not defined " - when it was OK before?
$(document).ready(function() {
$('#tabs > ul').tabs({ fx: { opacity: 'toggle' } });
$('#featuredvid > ul').tabs();
});
results in tabs dont close anymore,
jQuery is referenced in header:
script language="JavaScript" type="text/javascrip...
Hi, let's say I have some links
<a href="#" target="UniqueString_black"></a>
<a href="#" target="dog"></a>
<a href="#" target="duck"></a>
How do I get the value of target attribute starting with "UniqueString_" ? The ID of element is unknown, we need to search by matched "UniqueString" in "target"
I also need to attach this value as...
I'm using jQuery to update an image source
$("#myImage").attr("src", imagePath);
Immediately after, I try to detect the image's width with
$("#myImage").width();
Looks like sometimes (especially on first update) the update is not done, and I get invalid data.
Is there a way to make sure the image finished loading?
...
i have a html table and i want to basically loop through each row and each cell per row and simply print out the results. The one thing is some of the cells have input boxes, some have select dropdowns and some have raw content inside the TD.
what is the fastest way to simply looop through every cell in an html table and get the result...
In this video: http://vimeo.com/116991
I want to know because the result is changing as he codes it, and I want to use the IDE which has that feature.
...
I have a listbox element in aspx page which id is attributesList.
I want to select this element to track its change event, but i cant directly select its id because asp.net changes its id on runtime.
its id, attributesList changes into ctl00_adminPlaceHolder_attributesList.
so what i want to do is to use a "contains" xpath expression ...
Hi all-
Here is my question. I want to create a table with a specific header row that looks like this
<table>
<tr class="table-header"> <th></th><th> Name </th><th> Location </th></tr>
..data..
</table>
The problem comes when i want to do an ajax populate of the table rows. I have tried a couple options. Basically my app knows wh...
I'm wanting to post live jQuery examples in my Wordpress posts, and so need to be able to include working code in the actual post itself. I've turned off the WYSIWYG editor and any settings which may mess up my code when I publish. I've also, through the exec-php plugin, been able to get php code working in-post, but this (admittedly old...
Is there a bug in how jQuery handles child selectors or am I missing out on something obvious? I can't get it to work when the child is anything other than *.
Here's the jQuery selector I am running:
$("#myTable > tr").each(function() {
// do somthing }
);
And the table structure is:
<table id="myTable">
<tr>
<td><bu...
I am building a page that is employing several different javascript elements and I seem to have run into a problem I haven't before (not surprising as I am new to javascript).
I have implemented the tutorial for the JQuery Coda Slider located here: http://jqueryfordesigners.com/coda-slider-effect/.
It seems that the sliding effect wor...
I recently wrote the following selector with a little help from (possbily you) StackOverflow
$(':submit[name="Delete"][value="Delete"]').click(function() {
return window.confirm(this.title || 'Delete this record?');
});
Q: Now that 1.4 has been released, is there a more elegant way to write the selector?
...
How is it possible to keep the scroll position of a scrollable div within a modal dialog when it is re-opened?
I modified the basic downloadable example of simplemodal as follows:
<div id="basic-modal-content">
<h3>Scrollable Modal Dialog</h3>
<div style="width: 150px; height:100px; overflow: auto;">
a<br>a<br>a<br>a<br...
I want to create a menu that sorts by days. Everything works except the pager won't output weekdays. My code is as follows:
var days = new Array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday" );
$('#main')
.before('<div id="nav">')
.cycle({
fx: 'toss',
timeout: 0,
pager: '#nav',
option...
I am looking for a function similar to hoverIntent, but for scrolling. I have a function that moves the sidebar to stay put while scrolling. They thing is, the moving/calculations take place really close together, causing the "always visible" box to flicker while scrolling. I am looking an invent that fires only when it is very likely th...
Right now, I'm using max-width to scale images to fit. However, they don't scale proportionally. Is there a way to cause this to happen? I'm open to Javascript/jQuery.
If possible, is there a way to do this without knowing the original dimensions of the image (maybe determine this using Javascript/jQuery)?
...
what does the following mean?
$.each(json.results, function(i, item) {
...
}
I kind of understand the other parts of the line, but if you could explain that as well, I'd appreciate it.
...
The following code inside the tags gives error: "Object Expected".
<!-- JQuery/AJAX-->
<script type="text/javascript">
try {
$(document).ready(function(){
$("p").load(function(){
MakeRequest('divElectionCategory','ulElectionCategory','SELECT * FROM electioncategorymaster',...
Hi Guys,
I have a very simple toggleClass that changes the appearance of a link when clicked on. Works great apart from one thing. Every time I click the link, the browser focus shifts right back to the top of the page. This gets quite annoying if a link is at the very bottom of a page.
I could use another element such as span of coars...
From the context of the code I am reading, it seems like $("<tag></tag>") creates a tag, where as $('<tag>') is a selector that searches for a tag. What's going on here? Actually I might not have the syntax of the second one right, but I'm sure I've done $('idName') like this before.
What's going on?
...
So i'm trying to make tabs with the JQuery UI framework, but I can't get them to work. It just shows up as a bulleted list, and then with the divs all under each other. I read on another post that you needed some sort of css/theming which i didn't have before, so i downloaded one with a custom theme. i unzipped it in my media folder and ...