I have the following list item that I want to append an 'Edit Settings' button to:
<li class="draggableBucketItem ui-state-default" id="bucketItem75" bucketID="2" pageModuleID="75"><span class="spnName">HTML Content</span><li>
I use jQuery to append a span to the list item:
$('#bucketItem75').append('<span class="spnEditModule">Edit ...
I have a registration form for a website that needs to check if an email address already exists for a given company id. When the user tabs or clicks out of the email field (blur event), I want jQuery to go off and do an AJAX request so I can then warn the user they need to pick another address.
In my controller, I have a method such as ...
Hi, I'm trying to do this:
!!! just learned I cant submit images because I'm new...
I have placed the image which
perfectly describes the problem on
Diino: Link to Diino folder (18,9kb) together with example files (html,css etc).
The moving DIV has this CSS:
div.linkr-bm {
float:left;
height:1px;
overflow:visible;
positio...
Basically I was trying to replicate one of the things that xajax gave me with Jquery -> The ability to define what my response modifies server side without setting anything up client side. Works perfectly as is, but each time I want to call a different Jquery function, I have to add it to my if statements.
Each element in the response...
Here is one jQuery plugins which allow me to filter the result of drop down values. I am looking for a plugin which allows user to type right there in the drop down box and it filters records. Anyone knows of such plugin.
In that plugin dropdown box displays all the choices. User can go and pick a value or user can filter the result by ...
I have the following HTML:
<table class="products">
<tr>
<td>Product description probably goes here</td>
<td><a href="#">more information</a></td>
</tr>
</table>
To make it a bit sexier for Javascript-enabled browsers I've added this jQuery (1.3.2):
$(document).ready(function(){
$('table.products tr').click(function(){
...
Hey,
Is it possible to load new data between td tags and change the background image of the td tags with jQuery if I gave each one a id?
If so, how would it be done?
...
driving me nutso....
I have a .Net 2.0 webservice that takes a string and returns XML. I have an HTML page that uses jQuery a simple $.post command to call the service and process the return. The service is up on the remote site, I can access it via URL and I can test it successfully using SOAP_UI no problem.
On my machine everything w...
I'm trying to write a simple JSON post and the callback alert does not show up no matter what I do. I used firebugs to see if the post was getting any response and "SHOE" returns. So why is the alert not working in the callback?
view code:
$('#GaragePartAddfrompartlistForm').click(function() {
var item = "CHEESE";
$.post(...
I start with this markup:
<div>
<span>
<label for="Item[0]">Item #1</label>
<input type="text" value="" name="Item" id="Item[0]"/>
</span>
</div>
On each button click I want to add another section exactly as the one above but with an incremented index.
<div>
<span>
<label for="Item[0]">Item #1</label>
<input typ...
This is an odd one. Via jquery, I want to create a container object, visually hide it, load AJAX content into it, and, when loaded with content, show.
What's odd is that it only seems to hide the object if said object is given a border. Example:
This works:
tr.find('td')
.html("<div class='inlineLoading'>loading...</div>"
...
I'm using the jHtmlArea jQuery plugin on my page and I'm making it visible onClick of a button. Now I'm trying to place the focus into the jHtmlArea editor once it's displayed, but just can't seem to get there.
I did find this blog post Setting Focus to Control in an IFRAME using jQuery which is talking about setting focus to an element...
I'm writing a simple jQuery plugin, but I'm having trouble being able to use multiple instances on a page.
For instance, here is a sample plugin to illustrate my point:
(function($) {
$.fn.samplePlugin = function(options) {
if (typeof foo == 'undefined')
{
alert('Already defined!');
} else {
var foo = 'bar';
...
How do I select an element based on its css?
I need to select a br with inline style display:none. This is not the same thing as br:hidden, because that selects elements that are hidden in other ways, and I don't want that.
Thanks.
...
I am dynamically adding X canvas elements to a page via jQuery like so:
$(document).ready(function() {
for(i=0;i<4;i++) {
var can = $(document.createElement("canvas"))
.attr("id","table"+i)
.addClass("table")
.attr("width",640)
.attr("height",480)
...
I want to create a simple button that will inject a [b][/b] into a textarea.
How can I do this?
...
Hi,
I was wondering if there is a jQuery animation that can be applied to a pop-up window when a button is pressed?
Basically have a page with a button - when the users presses this button, a popup windown appears - would like to apply some animation to this page such as zoom/fade-in if possible.
Thanks.
T
...
I have a page called loader.html. It contains an iframe, which contains jQuery.
On index.html, I do <iframe src="loader.html">
How do I access the elements inside loader.html ? top.document ?
...
i need to create a frameborder=0 iframe with no scroll bars.
it needs to automatically resize it's width basedon the browser window's current width.
its height needs to be based on the document.length. so if its a long page, iframe needs to stretch way down.
this way, there is no scrollbar created in teh iframe.
...
Given the following code, how do I use the variable divs created by the first jQuery selector, without rerunning it on the line where I add the class?
So, given this:
var divs = $("div.searchhit");
// more code here using divs.length
divs.removeClass("selected");
$("div.searchhit:eq(0)").addClass("selected");
How do I get th...