jquery

Trying to access the options of a dropdown box using jQuery/javascript, but it's saying that .options is undefined?

I'm creating a dropdown box dynamically in jQuery by appending html as follows: .append("<br><SELECT NAME='Month_list' class='month_selection'</SELECT>"); It gets created fine, but I'm trying to dynamically add options to it using the following code: $('.month_selection:last').options.add(new Option(month_array[index])); but I'm g...

Updating a Drop down list with Jquery from JSON

I have a list that I need to fill using a JSON collection of object. Here is what my action is returning: public ActionResult GetProductCategories() { var categories = _entities.ProductCategories.ToList(); var result = new List<SelectListItem>(); foreach (var category in categories) ...

How to show this Success message on popup .

I have this code in my view. After my database adding the message is showing perfectly but my Grid is not showing the updated result. If I keep return true; when I click Submit button I am getting popup window immediately and then adding to the database? This showing my updated result in the grid. ...

stopPropagation() not stopping event bubbling?

jsFiddle I'm using a jQuery plugin that allows the user to draw boxes in an area. I've put a dropdown list in the box that appears when the users lets go of the mouse button. The problem is, when you try to click on the dropdown list to select an option, another box is drawn. I've tried to use the following code to stop the click event ...

jquery override keydown function back to default

I'm using jeegoo context menu jquery plugin which overrides the arrow keys in order to navigate the menu. I have an input field in the menu and when in the input field the left and right arrow keys don't function. Is there a way I can add an exception so that when I'm in an input field the left and right arrow keys revert back to defau...

Firebug's HTML in the HTML tab is grayed not, therefore not visible on the page itself.. why?

So here's the deal- I'm using AJAX to load page content via XML files. The content gets loaded correctly, no problem there. But, when I load a specific piece of HTML, Firebug shows it as grayed out, and I know from looking online that means it's not visible on the page itself, which is true in my case- I do not see that div on the page. ...

Problem in IE with jQuery JSON append() to select control

The following code works fine in FF and Chrome, but not in IE8. I have 5 related category select boxes. The below code relates to selecting a category from the first select box. In IE8, I get a blank subcategory select box, after selecting a category. In Chrome and FF, I can browse through categories and subcategories normally CODE $...

can't seem to integrate HoverIntent in my existing Jquery hover code

Hello, I started with an easy Jquery script for a horizontal menu: $(document).ready(function() { $("ul#topn li").hover(function() { //Hover over event on list item $(this).css({ 'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color and image on hovered list item $(this).find("span").show(); //Show t...

jQuery tab slider

Hey all, i am trying to find a good example of this type of slider HERE. I can not seem to find the "official" name for it so i really can't search for it. The effect that i am trying to find is that of the triangle that moves/slides depending on which tab you click on. Any help would be great! :o) David ...

jQuery code doesn't work in ASP.NET user control

Hi. i am using jQuery colorbox plugin. it is true with asp.net page but not in asp.net user control. what is the problem? <html lang="en"> <head> <meta charset="utf-8" /> <title>ColorBox Examples</title> <style type="text/css"> body { font: 12px/1.2 Verdana, Arial, san-serrif; padding:...

jQuery .each() help (doesn't doesn't complete before running proceeding lines)

I have a jquery function that takes the data from the 3rd column of a table - runs a function on it - and then replaces the field with the result. Here's my code: function getData() { $('#tab1_response').html("<img src='images/ajax-loader.gif' border=0> Please wait...").show(); $('#myTable tr').each(function(index){ v...

Why can't this checkbox, created dynamically with jQuery, be clicked?

jsFiddle I'm using a jQuery plugin that allows the user to draw boxes in an area. I use jQuery to put a checkbox (along with a dropdown list) in the box that appears when the user lets go of the mouse button (this is towards the bottom of the javascript in the jsFiddle). The problem is, the checkbox is unclickable. I do have some clic...

dualslider problem in IE with images

I downloaded dualslider and changed the first and second vimeo movies to images. dualslider works on jquery. FF and chrome don't have any problem but IE8 splits images to three and slides. Please see this test with IE8. I noticed that if I add at least one vimeo or youtube video, IE8 slides normally as well. I wrapped all three i...

Show div on mouseover over another div and close all other divs with same class

Hi, I have a list of divs (simplified example) <div class="title">text</div> <div class="description">text</div> <div class="title">text</div> <div class="description">text</div> <div class="title">text</div> <div class="description">text</div> .description is hidden on page load when I hover over a title i show the description to t...

JQuery resizeable grid ontop of image

What I wish to accomplish at the client side is to show an image and let the user cut up an image into tiles of various heights while making sure that there are no gaps(vertically) and that all the pieces are of the same width(the widget of the original image). Initially the image will be cut up into a fixed(don't want to allow addition/...

JQuery UI Tabs in IE appends ajax tab before body!

Wall Info < a title='members' href="ajax_commune_members.aspx"><span>Members</span></a></li> <li><a title='photos' href="ajax_commune_photos.aspx"><span>Photos</span></a></li> </ul> <div id='community_wall'> ...this one is local and is not loaded via ajax!, it is a...

How do I dynamically assign button listeners in JQuery/HTML?

I have a table with and id of foo and I want to add rows dynamically that have a button that do something. How can I assign the listeners for the buttons dynamically using JQuery? Thanks ...

iframe .load event not firing

I am trying to reload an iframe like the following: var frameObject = $('#myFrame'); var frameAsInDom = frameObject[0].contentWindow; var currenctLocation = frameAsInDom.location; frameObject.attr('src', 'about:blank'); frameObject.contents().remove(); // This was a desperate statement!! frameObject.attr('src', currentLocation).load(fun...

jQuery DataTables Show and hide details feature using MVC

Hello. Is there a simple and clear example that shows how to use show/hide details about particular record feature of dataTables jQuery plug-in with MVC? If you have implemented this stuff and may share it with me, I would greatly appreciate it. Thank you for your help! ...

How to create a animate to specific LI in an UL?

I am using Jquery .animate to scroll a UL up and down so that you can see all the elements, how would i make IF ELSE statement that said. IF the FIRST LI item in the UL is at the top, dont scroll anymore, and IF the last item is at the bottom of the visible portion of the screen dont scroll any more down, else scroll 510 px. Right now ...