Hi,
I have an action on a page whereby a user clicks to remove a div. What I'd like to achieve is, when the click occurs, automatically change a drop down to show a value and refresh a separate div content.
For example:-
$("a.removeTier").live('click', function() {
//var tier = $(this).attr('id').match(/\d+$/);
var tier = $(t...
Hello
var myarr= Array('test1','test2','test3');
var searchTerm = "test";
var rSearchTerm = new RegExp( searchTerm,'i');
$.each(myarr, function(i) {
if (myarr[i].match(rSearchTerm)) {
//item found
}
});
guys is there any way to make my search algorithm better ? "myarr" will be a big array so i want...
I have a form which contains a select named Client_ID as well as some other text inputs. What I need is that when a user selects a Client_ID, my fields Address1, Address 2 etc should be populated with the result of a database query along the lines of
SELECT Address1, Address2 from Client where Client_ID = Client_ID
I'm aware this is ...
Hey there!
I've been working with JQGrid a lot, and would recommend it to everyone.
The one feature I don't really like is the built in multiselect which doesnt use special keys like shift and ctrl, doesnt give you much control and forces checkboxes to be shown.
I would like to implement my own multiselect as follows:
In onSelectRow- c...
I am building a similar wall feature to what facebook has, comments etc.
I am making use of django's comments framework and jquery to post and get on success, and I am looking at a way of extracting the the hidden id_object_pk's value and using that also as the forms id
Your normal form is rendered in the following way.
<form action="...
I have the following code that will check to see if the div text has change and if so then update the text in the mysql table. but when i try and add spaces in the text and it dont allow it to save every thing i have write. Can somebody help me out please
Thank you.
<script>function save() {
var div_sN6VmIGq = $("#64").text()...
This is my code on html page which references to webservice which is in local application folder. Can anyone help to resolve this issue
var keyword2 = "{\"keyword1\":\"" + keyword1 + "\",\"streetname\":\"" + address1 + "\",\"lat\":\"" + lat + "\",\"lng\":\"" + lng + "\",\"radius\":\"" + radius + "\"}";
$.ajax({
...
Hi guys,
My problem is that i have a dynamic loop in which i generate 5 textboxes and now i need get the data of each index because i want to send by in a array to the controller. Can anybody tell me how i get the values from the textbox arrays. All textboxes have the same name and id but they have an index.
...
hello,
i am using jquery think box as light box it works in normal but if i loop though a php it fails..
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Description" content="ThickBox is a webpage UI dialog widget written in javascript on top of th...
Hi All,
I have a tree structure menu. What I am trying to achieve is to add the '.toggle-me' class to the next submenu that shows up.
I have achieved this to some degree, although I need to some get the .not(this) to include all .rtmenu's before this?
Here is the code I'm working with:
$('.rtmenu').live('click', function(){
$('.rt...
Hi,
I'd like get a string with the value from some Textbox (with a specific class) and the values should be separate by a comma.
Any idea ?
Thanks,
Update1 :
I have this
<input type="text" id="A" class="test" value="aa">
<input type="text" id="B" class="test" value="bb">
I'd like this : aa,bb
...
If I use this
$("select option").attr("selected", "true");
Or
$(function(){
$('select').children('option').attr('selected', 'selected');
});
the list of dropdown will be selected automatically.
But in my position I should not use Iterator. Here both function using iterator. Here each and every option we set true or selected t...
Hi,
I'm dynamically generating datepicker's by simply appending the field HTML to a div:
<input type="text" value="" readonly="readonly" name="tier[2][publication_date]" id="publication_date_2" size="10" maxlength="10" tabindex="6" class="publication_date hasDatepicker">
<input type="hidden" name="tier[2][publication_date_db]" id="publ...
I have a list of checkboxes grouped into sections.
Some of these checkboxes can appear in more than one section.
What I would like to do is stop the user from selecting the same checkbox in more than one section by disabling all checkboxes which are the same when the user selects a checkbox.
However the checkbox they selected must not be...
Hi,
I have a jsFiddle set up here that i want to work on future elements that will be injected into the DOM via AJAX etc:
http://jsfiddle.net/Nb3uW/5/
How would i go about converting this over?
...
Hi,
I downloaded qTip module from Drupal site and extract it to sites/all/modules.
I downloaded project from http://craigsworks.com/projects/qtip/download/ and extract it like README.txt file says ... to sites/all/libraries/qtip ... so I have in folder qtip these files
*jquery.qtip-1.0.0-rc3.min.js
*jquery-1.3.2.min.js
*REQUIREMENTS
...
I have a handler which is triggered for two events:
blur trigger of object A.
click on object B.
The problem is when Object A has focus and I click on B, both the events are triggered. I want to stop this from happening. The handler should be executed only once in this case because there's a toggle() inside which is being nullified d...
I'm new to tinyMCE and I like the jQuery plugin that comes in the latest version. However I'd like to set global options that would be used in every subsequent instance; for example themes and skins. Is this possible?
Edit.
Here is an example of the method I have used.
$(document).ready(function(){
var config = {
direction...
Hi,
I am using Uploadify Plugin to upload images, the parameter response of the uploadify function will hold the value 1 if something goes wrong.
i did something like this and works perfectly fine.
if(response != 1) {
$('#t_fileUploadName').append('<p>'+response+'<p/>');
$("#t_fileUploadField").append("<input type='hidden' ...
I have a jquery plugin for textbox hints.
Refer to the link below for the hint plugin:
http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
May I know how can I change the hint dynamically? Thank you.
...