I want to use the autocomplete plugin for jQuery to populate not one, but two fields when selecting one of the autocomplete values - the name of a band is entered in the #band input field, but the band url (if exists) should also automatically be added to the #url input field when selecting the band name.
Right now I simply have an un-p...
how can we make the jQuery plugnin to return the wrapped set?so that using the plugin does not make the code loose the chaining property.
...
Hallo all.
I got a strange problem with this piece of code
<select name="nazioni" id="nazioni">
<option selected="selected" value="val">Seleziona</option>
<option value="0">text 1</option>
<option value="1">test 2</option>
</select>
The correct behaviour is that with this html the selected option is the "Seleziona"
On some brows...
The attached code allows dragging of elements (jQuery) into a sortable area, where all elements can be sorted manually. This works fine in all browsers but Chrome and Fx, where the the sub-data's view is toggled when rearranging the order.
To reproduce, using the code below: Drag two elements into the box below. Expand the first one. Dr...
Hi all,
I'm just getting started with JQuery and the treeview plugin so this should be a relatively easy question:
The example code for adding branches to the tree:
var newnodes = $("<li><span class='folder'>New Sublist</span><ul>" +
"<li><span class='file'>Item1</span></li>" +
"<li><span class='file'>Item2</span></li></ul><...
Im trying to add a Jquery validation script to a form plugin for wordpress. The plugin is written in Ajax and while it does validate the input fields, its not very pretty. That is why I am trying to use Jquery to validate the fields before Ajax hands the data over to the database.
What I need to happen is this: When a user clicks submi...
this is my setup
<div id="uxcParent">
<div id="uxcClickable"></div>
</div>
now when a user clicks in the inner element i want the mouse position with respect to the parent div and not the page.
this what i tried.
var x= e.pageX- obj.offsetLeft;
var y= e.pageY- obj.offsetTop;
this works fine only when i don't scroll the page. I ...
I have a large JSON data string that's 757KB. I tried GZIP'ing it, which successfully reduced file size down to 143KB. But, in it's GZIP'ed state, my JQUERY function can't make use of the compressed JSON data.
Any suggestions on how to compress JSON in an IIS/ASP environment and still be able to use the JSON data in a JQUERY function?...
I have a menu composed of a single image (e.g., sprites). In order to display the hover image, I simply move the background image down. I'd like this effect to be controlled by jQuery and animated.
This is a sample menu item.
<ul>
<li id="home"><a href="#"></a></li>
</ul>
This is what I'm toying with. I'm very new to jQuery and a...
I am looking to access the actual value returned from the server.getRowData returns the value after unformat applied to the value. This results in loss of information.
For instance, if a double value is rounded to two decimal places and if I want to populate the form for edit with the original value returned from the server with 6 decim...
I am working on a simple messaging system. For composing the message, I provide a text area. This text area should have an autosuggest functionality and also something like a "remove" button.
Can you tell me how to implement this sort of functionality? I think there is a jQuery plugin to accomplish something like this, but I can't recal...
I have a series of <div/>'s as follows:
<div>.co.uk</div>
<div>.com</div>
<div>.gb.com</div>
<div>.uk.com</div>
<div>.net</div>
How do I select just the divs containing .co.uk, .com, .net.
If I use:
$('div:contains(".co.uk"), div:contains(".com"), div:contains(".net")`)
This causes the .gb.com and .uk.com divs to be select...
I'm trying to build up a string array in JavaScript and get the results in a string list in the action method. Below is what my JavaScript looks like. I'm using jQuery 1.4.2. The problem is my List in the action method is always showing NULL. Will a JavaScript string array not map correct to a string list in C#?
var test = ['tes...
I have a database the I am rebuilding the table structure was crap so I'm porting some of the data from one table to another. This data appears to have been copy-pasted from MSO product so as I'm getting the data I clean it up with htmlpurifier and some str_replace in php. Here is the clean function:
function clean_html($html) {
...
I have the code below, which works fine it can be viewed here for an example. Once the user hovers over one menu, you can then not hover over it again unless the page is refreshed. I have a feeling its something to do with my queue and I have tried .stop() but doesnt seem to work.
<script type="text/javascript">
$(document).ready(fu...
I have an element:
<select id="row" />
I want to append a string to the end of the id attribute, like this:
<select id="row_1" />
The jQuery I am using to achieve this is (from within an each):
$(this).attr('id',$(this).attr('id')+'_'+row_count);
This looks ugly as sin, and whilst it works I want to know if there is a simpler so...
I have 2 "lists" of (4) radio buttons {value = "0", "1", "2", "3"} in all lists.
The first list needs to drive the second list (which may occur multiple times). So if an option is selected in the first list, the SAME option is selected in the second list. It sounds weird, but it has a purpose. The first list is more of a "select all" ty...
Hi All;
Aspx Page:
$(document).ready(function() {
$("#btnn").click(function() {
$.ajax({
type: "POST",
url: "TestPage.aspx/emp",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
...
Hello!
Is there a way to change the "today" date in jquery.ui datepicker?
With today, I mean today (class="ui-datepicker-today") and not the minDate or the current-selected date!
I figured out, that datepicker uses the system time for default values. Now I get the current date from my server and set it to my minDate. But I didn't find a...
I have tons of ajax components on this booking engine. I need to customize the text inside of the modal for each of the components to suite.
I added:
$('#loader').bind('ajaxStart', function() {
$(this).show().addClass('modalOpen');
}).bind('ajaxComplete', function() {
$(this).removeClass('modalOpen').hide()
...