I need to fire the jquery datepicker from a link click. Right now if i click on the textbox the datepicker opens which is great but i have a button next to the textbox that someone can click and it needs to open the datepicker next to it. Also I would like a label instead of a textbox, is that possible. The code is below:
$(document).re...
I've created a quite complex store locator of sorts. The user enters their zip and a table returns results with corresponding markers on a map. They can page through results and the markers move further and further out and the fitbounds() function works great for zoom out to the appropriate zoom level to fit the markers. The problem is t...
Hi,
I am trying to implemented this jQuery news ticker style plugin from http://www.makemineatriple.com/2007/10/bbcnewsticker
Like mentioned in the comments (around May) there is a bug and the author lost its will to give a bug fix.
The bug is:
In Mac browsers (Firefox, Opera and Safari, all OSX) - links (a href) don’t ‘work’ until ...
With my code I can get a div to scroll through 4 images, but if you look at the code, i have to keep adding '.next' to get it to scroll to another image. I don't want to determine the amount of images to scroll through in jquery, i want jquery to keep looking through the div for as many images as i have, scroll through all of them, then ...
I am looking to create a generic config pane for a grease monkey plugin. I was wondering if there exists a lib to make this easier?
I am looking for some tool where you might give it some name/value pairs and it will generate a nice looking UI.
I think ive seen this somewhere but forgot the search terms.
...
I have a site where users can enter Area Codes into a text field, but not every Area Code is in our database. I'm trying to do a very simple AJAX request to validate that the Area Code they entered is in our database, but for some reason I'm having trouble with it. Here is the stripped down version of the code I was using originally. Thi...
hi I have an textarea which anyone can enter text, where they can put line breaks inside the text area.
How can I remove the line breaks created by pressing the enter key? can either be in c# or javascript.
...
I have a number of fields where I want to display the data in red if it is expired.
<%= Html.Encode(String.Format("{0:d}", Model.Subcontract.insurance_GL))%>
If the date is less than today's date, then I'd want it to display in red. What is the best way to do this?
EDIT
This is for my Detail View. It's not in a grid. It's just a li...
I have a <select> element that I dynamically populate with different values at runtime.
I use the code below to clear the <option> elements and then reload it with new ones. It works in Firefox 3.6.6 and Chrome 5.0.
function loadPickerFromObject(pickerControl, values) {
pickerControl.empty();
for (var nameProperty in values) {
...
I have objects that I want to be both draggable and selectable. Is this possible?
var course_li = $(sprintf('<li class="course%s">%s</li>', already_scheduled_class, course["fields"]["name"]));
// ...
course_li.draggable(DRAGGABLE_COURSE_SETTINGS);
// ...
if (in_course) {
course_li.draggable('disable');
}
// ...
$(".course...
Hello,
I am using the Jquery Datepicker found here.
Does anyone know how I can modify this code to allow for past date selecting.
$('#start-date').bind('dpClosed', function(e, selectedDates) {
var d = selectedDates[0];
if (d) {
d = new Date(d);
$('#end-date').dpSetStartDate(d.addDays(1).asString()).dpSetSelected(d.asStrin...
hi all..i have a css script for make jquery menu bar..
i want it can show at left upside and no border...
so..it will show just a menu bar...
i have a text logo and i want to put it below the menu bar...
but actually the logo lies below menu bar body...
how to change it...??
<head>
<style type="text/css">
* { margin:0 auto;
...
I have an input text element being used as a jQuery UI datepicker with a custom date format. The date format allows months to be entered in as JAN, FEB, etc and so the constrained input allows all characters to go through. See this question.
How can I restrict the text entered to match my date format "dd-M-yy"?
Is there a way to use jQ...
How come this code will work perfectly fine:
<script>
$('.changeStuff').click(
function() {
$('#number2').val(12.00);
});
</script>
<body>
<h2 class="changeStuff">Lets change some stuff</h2>
<input name="number2" id="number2" value="11.00">
</body>
While this code, written to be used in an onClick event, wont work at all?
<scrip...
i wonder if i use
google.load("jquery", 1);
google.setOnLoadCallback(function() {
// i still need to check if document has finished loading with
$(function() {
// do stuff
});
});
the question is when google.setOnLoadCallback() is called it does not mean the document has finished loading right? or can i do stuff ...
I'm trying to use the jQuery UI framework with selectables.
First off, is it possible to disable allow selection with mouse drag/lasso?
Secondly, I have several selectable elements, and I want only one of their children to be selected at a time:
<ul class="ui-selectable">
<li>foo</li>
<li>bar</li>
</ul>
<ul class="ui-selectabl...
i know how to track the click event on anchor tag when href attribute is directly assigned. but instead of assigning href attribute if we give the destination link in onclick function.
or when we are loading ajax file how to track the destination url?
...
Warning: This may be a very stupid question...
I'm currently using <A> tags with jquery to initiate things like click events, etc.
Example is <a href="#" class="someclass">Text</a>
But I hate how the '#' makes the page jump to the top of the page...what can I do instead?
...
Hi all,
I would like to display cluetip [jQuery] plugin for every row of dynamic grid in .aspx page. The content in cluetip should be fetched from database dynamically while loading the cluetip plugin.
Can anyone suggest any way of doing this?
...
hi,
I want dynamically load the content of a webpage as a tooltip using jquery.Is there any jquery plugging or mechanism to do it?
Thank in advance!
...