jquery

Calling a function within a array

Hello, How do I go about calling a function within a jQuery array to add another array? $('#map').zoommap({ // Width and Height of the Map width: '490px', height: '380px', //Region map: function getMaps(); }); getMaps() should return the following: { id: 'campus', image: '/resour...

Why does the JQuery valid() method always return True?

I have a simple HTML form: <form id="frmNewCategory"> <span>New Category Name:</span> <input type="text" id="txtNewCategoryName"> <label>Amount:</label> <input type="text" id="txtNewCategoryAmount"> <br> <input type="submit" value="Create" class="importantButton button" id="btnNewCategory"> <input type="butto...

jHTMLArea locks up inside jQuery webform wizard

Hello, I previously posted this question http://stackoverflow.com/questions/1704933/jwysiwyg-or-jhtmlarea-within-a-jquery-ui-tab about getting jHtmlArea to work inside jQuery Ui tabs. I am now trying to get this same html editor to work inside the jQuery formtowizard plugin. I am not sure if this is exactly the same problem or not. No...

jQuery onload function

HI, I m using the following script to call a onload function but it does not works in IE ("#body").attr({onload : "calFact();"}); ...

How do I select the first instance of an element of a certain class enclosinga DOM element..

Hi guys lets say I have the following html: <div class="owner"> <div> <a href="javascript:void(0)" onclick="">click</a> </div> </div> <div class="owner"> <div> <a href="javascript:void(0)" onclick="">click</a> </div> </div> I want to put code in the onclick handler so it results in selecting the element of class 'owner...

Filter json data using jquery?

My json data looks like this, {"Table" : [{"accid" : "13","accname" : "Default","accountType" : "Default", "noOfEmployes" : "","phone" : "","revenue" : "","webSite" : ""}, {"accid" : "15","accname" : "karpagam","accountType" : "Customer", "noOfEmployes" : "60","phone" : "9894606677","revenue" : "","webSite" : ""}, {"accid" : "14","accna...

jQuery / HTML scrolling behaviour

So I have a page that is split into 2 columns. The left column there are expandable forms that are quite long to ask the user optional product preferences. On the right side of the page there is a much shorter, 'contact details' form. The contact details form is mandatory. The behaviour idea is that as the user scrolls down to complete...

Bind value of dynamic jquery select list on post

Hi, Am new to this and just trying to submit dynamically populated select list on POST in MVC. Have read this post but don't quite understand the details of the solution, or simply can't get it to work. Here's my code: $(document).ready(function () { $("#SpecificID").hide(); $("#ObjectKindID").change(function () { ...

how to clear form elements inside table based on some conditions

I am having rich:dataTable inside that many div elements are defined. Each div element is having h:selectBooleanCheckbox and some number of input boxes. How to clear those input boxes only if checkbox is not checked. My sample code snippet <rich:dataTable> <div id="#1"> <h:selectBooleanCheckbox value=""/> <h:inputText value=""/> ...

How to return xml data to jquery ajax call from webservice

This is my ajax call to webservice -JsonWebService.asmx file $.ajax({ type: "POST", async: false, url: "/blkseek2/JsonWebService.asmx/GetList", data: keyword2, contentType: "application/xml; charset=utf-8", success: ...

Disable all A(URL) elements in DIV

I have such html code <div> <p>MY Text <a href="url">Text</a> </p> </div> I need using CSS or jQuery disable all A elements in DIV, when user move mouse over Text the URL is not active and he can't click on it. How to do that? ...

Why JQuery's .post returns no data?

I post JSON request to remote service. Everything is OK, service works fine and it response to me. But I have no data returned from remote service. How to get data from remote json service by JQuery via .post? Why this example returns the data -- ``null': <SCRIPT> $(function() { $('#zzz').click(function() { $('#lak').html('...

Richfaces calendar - how to disable popup of calendar after page is loaded

<rich:calendar id="orderpickDate" oninputfocus="check(#{myForm.packingListId})" When creating a calendar you get an input field and an img that popups the calendar. In the js function I can disable the input field: function check(packId) { var canEditThisDate = true; // canEditThisDate = true/false <-- checked using jQuery.ajax...

open autocompleter results' div on textbox click

Hi, i'm using this plugin for autocomplete http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete i want that when the user clicks on the textbox the div with all results become visible i' ve tried with $("#textbox").search() but doesn't work How can i do? thanks ...

Absolute selection to relative selection using $(this)

Say there is a selector $("#someID p") and that $(this) = $("#someID"). What selector would always be equal (if it was more complicated, like the example below) starting with $(this). Example:   I have the following selector: $(tableMap.id + " tr:eq(" + i + ") td:eq(" + j + ")")   On that line, I have $(this) being equal to $(tableM...

Difference between jQTouch and jQuery mobile

What is the difference between jQTouch & jQuery Mobile Framework ? Are they related (other than being both based on jQuery) ? Do they have the same goal ? ...

jQuery tooltip text internationalization

I need to internationalize the panes tooltips. Eg: Open/Close west pane, etc. How is this possible? ...

jQuery keyup keyCode doesn't work in Opera

Hi, Is it possible that the opera browser ignore the keyCode 40 (arrow down)? $('#test').keyup(function(e) { $('body').append('' + e.keyCode + ''); }) Test it at: http://www.jsfiddle.net/V9Euk/454/ Thanks in advance! Peter ...

trim "px" off the end of Jquery var

I have a variable which stores the css value of a margin. I want to remove the "px" from the end so that i just have the number to work with. How can i do this? ...

jquery autosuggest issue with asp.net ajax modalpopup extender.

I am using asp.net ajax modalpopup extender and jquery autocomplete. when i search in the textbox, the autosuggestion is displayed to the back of the popup. Its not sticking to the textbox that i am searching. is there any work around so that i can display the suggestions which would stick to the textbox. ...