jquery

Temporarily adjust height of element on hovering

I have a <h3> tag with limited height (100 px for example, position: absolute) and the text overflows it. What I would like to do is slide it down over to the height that is needed when the mouse is over it and back to original height (100px). I hope you understood what I mean I don't think it uses slidedown() function for that and I...

jQuery key code for command key

I have read http://stackoverflow.com/questions/302122/jquery-event-keypress-which-key-was-pressed and http://stackoverflow.com/questions/2445613/how-can-i-check-if-key-is-pressed-during-click-event-with-jquery However my question is if you can get the same key event for all browsers? Currently I know that Firefox gives the command butto...

How do i set a visible property of a div element to true or false in jq?

I would like to be able to do this: $(".panel").visible = true; but this doesnt work ...

When switching to jQuery, which validation framework is used?

When you switch the js framework in RoR to jQuery, what validation framework is used? ...

could jquery live solve this problem? table links are bound to click, ajax refresh of rows ruins things

I have a table, that I loop through using jquery and modify the href of each link. IF someone pages through the table, the links are refreshed using ajax (page doesn't reload). Now all my links are not modified since the table has refreshed. Paging is done via a drop down list. Can jquery live help in some way to re-apply the modific...

Can the jQuery UI Datepicker take the good day in input altfield

I use datepicker and I disable Satudray,Sunday and Holidays but the input alfield take this days and I want to exclude Saturday, Sunday and Holydays , I need to take the next selectable days. For the code :link text ...

How can i get the number of items(option) in a HTML select box in jQuery ?

How can i get the number of items(option) in a HTML select box in jQuery ? ...

Jquery autocomplete respond to enter key

I'm using the jquery autocomplete UI widget, for example: var names = ["John", "Jack", "Nick", "Tom", "Joyce", "Nancy"]; $("#nameInput").autocomplete({ source: names }); I'd like it to behave like the Gmail's "To" textbox. Specifically, I'd like it to highlight the best match as you type and if you press enter, then the highligh...

How to use jQuery's .serialize function with dynamic form elements.

How do I serialize dynamic form inputs? <table id="mytable"> <form id="myform"> <tbody> <tr><td><input type="text" name="row0"></td></tr> <!-- dynamically generated --> <tr><td><input type="text" name="row1"></td></tr> <!-- dynamically generated --> <tr><td><input type="text" name="row2"></td></tr> <!-- dynamically generated -...

Automatically populate dates and times

What I am currently doing is setting up a calendar feature, but when the user selects the date, and then the TIME the event starts (ie startTime = 00:10:00am), that it will then pre-populate the second field (ie: endTime = 00:10:30am). So I thought maybe the best route would be when you select your time, jQuery would just select the NEX...

jQuery Event.Target Problem

I don´t know if I have forgotten how to do so or if it´s a bug, but I just can´t find the caller's reference using jQuery. I´m doing the following: $(document).ready(function() { $('#parent a.item').click(doSomething); }); function doSomething(e) { // Alerts for demostrational purposes only alert(e.target); alert(e.cu...

suckerfish menu in js not working

I am trying to get suckerfish navigation menu working but it is not fading as shown in the demo. I've put my revision on JSbin: http://jsbin.com/usabo/3 I feel that jquery is not even being triggered ...

Can't load an AJAX query with a variable as the address

Hi, simple question mostly explained in the title. I need to load up a page, but just it's #container div. I can't, though. <div id="top"><a href="index.php">Home</a> | <a href="operators.php">Operators</a></div> <script type="text/javascript"> $('#top a').click(function(){ var pageURL=$(this).attr('href'); $('#container')....

Can someone explain how to get an object position from the RIGHT?

Hello all, I'm doing a drag and drop module now, and I need to get the position of the element on screen (don't really care if it is page, screen or offset or any thing else), but it has to be from the right as my project is in a RTL language....everything is RTL, so the data has to be saved like that to the DB because resolution and re...

Convert A to SELECT upon Click Event with JQuery

Using JQuery, and still a little new to it, trying to change an Link into a Drop Down of options, whi8ch the user can select from, and upon selecting a choice, it returns to a hyperlink with the text of the selection. So far, I have: $("a.timeChange").click(function(e){ e.preventDefault(); $stamp = $(this).text(); $.get("ts...

jQuery - my custom plugin wont queue animations?!

hi guys and gals, i did a little jQuery two part animation for a friend to show/hide a block of text. it basically faded out a DIVs text and when that animation finished it hid the DIV. it worked perfectly so I decided to make it into a plugin. But now the same code in my plugin will not wait for my first animation to finish before tr...

Lightbox: link to an image set without an <img> tag

I have a set of Lightbox images that load as thumbnails on the page dynamically from Drupal. It's working fine. However, I'd like to have a seperate 'View Slideshow' button on the same page that opens to the first image in the set, without having to reference the first image with the img tag, etc, as the image will change from time to t...

TinyMCE and Jquery load

Hi I have a html file called 'display_email_send.php' that loads TinyMCE and displays an email type box. I am loading this into my page when the user clicks the relevant button. This displays fine but without the TinyMCE properties. however if I view my php direct in my browser it works fine. Can anyone offer any suggestions please ? I...

how to empty the jqgrid grid after sending the data?

I have a jqgrid and after sending those grid records to server I want to empty the grid ...I am trying with reload but its not working...i am using it under complete ...but its not empty the grid grid instead it show me the same data... how can I achieve it ... ...

JQuery UI Droppable being destroyed when new droppable is created.

Okay, I have a simple droppable on the page. When the user performs an action, a function is run and it creates a new droppable. Now the original droppable doesn't work anymore. The only way it will work is if the droppables all have the same class name, but then if I drop something in the original, it thinks I dropped it in the new one ...