jquery

jQuery autocomplete to get unused value

In my ASP.Net MVC application I have a jQuery autocomplete on a text box. I have everything working to display currently used item names and what I want to do is force the user to enter a completely NEW item name. I.e. the autocomplete acts as a guide to what exists but the user must ultimately enter a completely used string value. I wa...

Strange IE JQuery problem

Works in chrome, and works in ff, but not in IE. IE refuses to call the the function in my callback. I'll post the code I feel is relevant: function slideRight(){ disableAll(); var leftMarg = parseFloat(opiHolder.css("marginLeft")); var fullWidth = parseFloat(opiHolder.css("width")); if(fullWidth + leftMarg > opiWidt...

limiting character in textbox

I have textbox to enter only alphabet and numerical values. I do not want use plugin. Is it possible' ...

Moving to the next Button

I have a series of buttons and other controls. When the user presses the Shift and *, I want to move to the next control (a button, text or any other control). How can i do this in the shortest possible way. ...

set dynamic value and text of select box

i have a select box at my page , i want to set diffrent value and text in select based on page login info. how is it possible with jquery ...

Autogrow jQuery Plugin on dynamic content in Internet Explorer

Hi I am using plugin here http://plugins.jquery.com/project/autogrow and I got a problem in Internet Explorer and Chrome (Not Firefox) See code below: <script type="text/javascript"> $(document).ready(function() { $('#main').html('<textarea class=\"test\">aaaa</textarea>'); $('.test').autogrow(); </script> </head> <bod...

JQuery wait for page to finish loading before starting the slideshow?

I have a site with a rotating header image (you've all seen them). I want to do the following: Load the entire page plus the first header image Start the header image slideshow transitioning every x seconds or when the next image has finished loading, whichever is later I haven't really need an example that truly does this. ...

jQuery DatePicker with Multiple Months Side-By-Side Layout Issue

We are trying to get two months showing side by side on a standard jQuery DatePicker control using jQuery UI 1.7.2 and jQuery 1.3.2. Unfortunately, the calendars will only stack vertically, and as a side effect are twice as wied as they should be (ugly!) Here is the code we are using to call it: $('#element').datepicker({numberOfMonth...

how to convert char to keycode

how can i convert a char to its respective keycode. ...

How to select from a LIST instead of DROPDOWN using jQuery (similiar to Digg's Submit New feature)

Hi, I like to allow user to select from a list of categories and instead of a DROPDOWN, I like to do it similiar to Digg's Choose a Topic where they list the topics using LI tags and clicking on it selects it. I like to restrict to just one selection for now. So clicking another selection deselects any previous selection. How would I d...

animating a simple jquery function

I have a simple jquery function that resizes a table when it is clicked. <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.expand_table').live("click", function() { $('.expand_table').attr('width', 800); }); }); </script> ...

Use jQuery to dynamically alter Form GET target on Submit

I would like to submit a form, specifically an input field to a URL based on the input field's value using GET. Example: Input field value is "test". Submit GETs www.myurl.com/Products/Search/test Example: Input field value is empty. Submit GETs www.myurl.com/Products/Search/ Example: Input field value is "123". Submit GETs www.myurl....

how to hide all the divs under a div class and show a div of the same class in JQuery?

I have a div class named "subproperties". In that div, I have many div elements like border,background,logo,button. These div elements are hidden initially(using style="display:none;") I also have a drop down box with these div element names as options. When I click an option say 'logo', that div is showed. Next when I click the option...

Exception error in PHP

Hi, while opening a page to view my Form in my application i am getting the error as [Exception... "'Syntax error, unrecognized expression: #' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no] i dont know why its so??? please suggest me. i am having JQ...

unable to drag jquery

I am using this function for drag n drop. Calling this function onmousedown event. It does not work when i did mouse down for the first time but it works perfectly fine from the second mouse down event. Can anyone tell me how can i make it work for the first time?? function DivMouseDown(id) { alert("id:" +id); //alert(" i m in DivM...

Editing table layouts in jQuery

So I'm building a CMS and for a given page, I want to let the client layout the page (not the site layout, the page layout, i.e. the content; headline, text, imageboxes, more links and such) with the given elements. Since table layouts are easy to understand for a client, I'm going to use that. Spare me the "always use CSS layouts" comme...

How to have lightbox on page load??

Hi, Is there a way to have lightbox on page load?? Say like when the page is loading i need to show the lightbox... and when the page load is complete it should disappear?? Pls help me in this...!! ...

how to set focus in required index on textbox for opera

i'm having a textbox where i need to set focus/ cursor at required index of the textbox in opera browser. ...

jquery - how to get content of div, which contains javascript in it ?

hi, i have div: <div id="example"> ...some text... <script type="text/javascript"> ... some javascript... </script> </div> how to get content of div "example" but also with that javascript ? $("#example").html(), $("#example").text(), $("#example").val() doesnt work. so i want to get this: ...some text... ...

Jquery - Unterminated String Constant

I have a page with jquery on it. It works fine in Firefox, Chrome etc but if I load it in IE, none of the Jquery functions run, and IE's script debugger shows: Error A Runtime Error has occurred. Do you wish to Debug? Line: 269 Error: Unterminated string constant Yes No The line in question is in my (unmodified) jquery.js th...