I'm trying to get the text value of the select option here and i keep getting the value what am i doing wrong
here is the code
jQuery.each(jQuery('select.personalize_toggle'),function(i){
var t = jQuery(this).html();
alert(t);
});
here is the html
<select class=" personalize_toggle " >
<option value="0" ></option>
...
Is there a way for me to set the date format once to 'dd/MM\yyyy' and then have jquery's ui datepicker use that date?
I don't want to set the date format everytime I use the datepicker.
I am getting the format from a server-side config setting, so I can output this on every page request to a js variable on the page.
...
I have a form with an date field with a jquery datepicker attached to it.
When I select the date field the datepicker pops up but then the iPad keyboard slides into view and obscures the datepicker.
How do I prevent the keyboard from popping up in this situation?
...
UPDATE: So due to this page: yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/, I realized that finding the window dimensions is not safari's problem. Instead it's finding the image .width() and .height(). I tried some of the ideas on this page: http://36flavours.com/2010/01/jquery-document-ready-bug-in-sa...
Using jQuery's UI Tabs. This is my code.
<div id="tabs">
<ul>
<li><a href="#tabs-1">Find a Category</a></li>
<li><a href="#tabs-2">Business Name</a></li>
<li><a href="#tabs-3">All Categories</a></li>
<li><a href="#tabs-4">Business to Business</a></li>
</ul>
<div style="clear:both;"></div>
<div id="tabs-1"><p>T...
Hi,
I try to send a message from to global page to my injected.js on the moment that a setting changes:
global.html
function settingChanged(event) {
if(event.key == 'open') {
safari.self.tab.dispatchMessage('openChanged', safari.extension.settings['open']);
}
}
safari.ex...
inside a normal JS function:
$('#friendsPop').jGrowl("testtmee");
Wont work, but:
$.jGrowl("testmeee");
Works just fine.. I have tested everything, and if i make a link outside a function, a normal a: link like this:
<a href="javascript:void(0);" onclick="$('#friendsPop').jGrowl('testme');">link</a>
It works fine too. But i wish...
Hey guys, ok, so, I have a jPlayer jQuery plugin playlist hidden on my home page (http://www.marioplanet.com).
Now, it is hidden by default and is only supposed to be activated upon clicking the image labeled "Music" in the upper-right-hand-corner of my header <div>.
This works great, and once an end-user clicks the image, a nice, slic...
I am looking for a jQuery list that is editable (add, change, delete elements), what is a good starting point code base that does this?
I found this one example which is great, but it doesn't add, edit or delete list items:
http://jqueryui.com/demos/sortable/default.html
...
I'm currently using SuperFish - http://users.tpg.com.au/j_birch/plugins/superfish/#download - for the first time in a project of mine.
My global navigation works as intended, however, regular page lists are displaying the same styling as my Superfish navigation. I have looked through my CSS, everything is written pseudo-like and should...
JS Bin demo
Task:
I'm creating an event scheduler using jQuery UI. Events are of a certain length (in minutes) and they can be dragged into different days, each with their own maximum length (in minutes). In the example, each day's maximum length is 480 minutes, and no more than 480 minutes worth of "events" should be allowed to drop i...
I'm using the jQuery UI autocomplete functionality and, while I've found a way to implement the autoFill function, I was looking for functionality like in the Google Chrome address bar. Where the best matching item is auto-filled, but it doesn't interrupt your typing.
Any help is appreciated.
...
I have a page I am constructing and I need to pass in the values of the option dropdowns to the next page. The problem is that these dropdowns are not in a form.
http://posnation.com/test/pre_config/pre_config_step_2.html
Basically what i need to pass to the next page is that when i click "Proceed To Next Step" I need to pass the ...
I'm trying to get the values from multiple textboxes using JQuery.
I'm a bit of a newbie with Javascript in general. I have a form with the following input element:
<input name="milkman" value="jessie"/>
<input name="letterman2" value="jim" />
<input name="newmilk" />
I get the values of the first two input elements using:
var test...
hello,
i have a form that with a link click adds a new for a file with jquery's .html()
// show div to change image on product_edit.php
$("#change_img").click(
function () {
$("#change_img_div").html('<label>Image product</label><input type="file" value="" name="item_img" id="item_img"/>').fadeIn('fast');
...
Hi,
I'm trying to catch Ajax timeout error with jQuery 1.4.2, but none of tutorial I found work. In Firebug, when timeout error fires. I see uncaught exception: [object Object]. Please help me handle Ajax timeout. Here's my JS code:
$.ajax({
type:"POST",
url:"/data/add/",
data:
{
"date":$("input#date").val();
},...
I am constructing a URL and I have
escape($('#count_of_stations').html()
The problem is the value will come in like this
1 station
2 stations
I need to strip everything other then the first character, so is there a way to sent it with the " station(s)"?
...
I'm just getting started with jQuery. I was using it to make a photo gallery that pulls photos and their information from Flickr. The script is shown below
<html>
<head>
<title>Flickr Test</title>
<script src="http://rhol.squarespace.com/storage/js/jquery.js" type="text/javascript"></script>
<script src="http://rhol.squarespace.c...
I have downloaded the jQuery outside events plugin as Sarfraz suggested, which seems really great, except, I cannot appear to get it functioning correctly.
Here is my code that I'm trying to call it with:
$("#player").bind( "clickoutside", function(event){
if($('#player').is(':visible')) {
$('#player').slideToggle(500);
}
});
...
$(".number_changer").attr("id")="two";
I am trying to grab the class number_changer and set the id on it to "two"
invalid assignment left-hand side
$(".number_changer").attr("id")="two";
...