Hi guys, I have a bunch of tick boxes that need to be inserted into one database column on submit, but I have no idea on how to accomplish this, I was thinking maybe jQuery or Javascript, any ideas?
Here is a snippit of code:
<input type="checkbox" name="vehicle" value="Bike" />
<input type="checkbox" name="vehicle" value="Car" />
s...
Hello,
I'm trying to find a simple way to attach click events to an element, which is quite easy for the 1st and 2nd click events.. But, what I am trying to accomplish is a three click Toggle.
1st click = addClas('one');
2nd click = removeClass('one').addClass('two');
3rd click = removeClass('two').addClass('three');
next click would ==...
Hi.
I have images in seperate tables with Delete button and I would like to remove the table of which delete button was clicked.
I have tried $(this).closest("table").remove() and $(this).parents("table").remove() but without success. Nothing happens.
here's the HTML:
<table class='".($i % 2 ? "tbl_img_light" : "tbl_img_grey").">
<tr>...
hello.i'm newbie at web developing.
i have some input form.i'm using jquery 1.4.2
inside that i have one textfield specially for input time.
i want every one no need to type manually.
and also make easy for every user.
can you tell me how do i do that?
...
I can hook into the change event of the select fine (Which will cause the select to close), which is not a problem. But I also need to detect when the select tag is closed by way of clicking on the screen elsewhere.
So far everything I've tried hasn't worked; body click, body focus, select blur, select focusout are among the few combina...
<script type="text/javascript" language="javascript">
$(function() {
$("#distributor").autocomplete({
source: function(request, response) {
$.ajax({
url: "/Devices/autoDistributor", type: "POST", dataType: "json",
data: { name: request.term, maxResults: 10 },
...
Via jQuery I'm dynamically cloning an input checkbox object, and then I'm changing its name using this instruction:
row.find('[name="ACCCHB_CDARM"]').attr("name",id);
ACCCHB_CDARM is the attribute's name of object I'm cloning.
There's no problem using FireFox, but in IE it doesn't change the original value!
Is this code correct?
Th...
I have a div (nice gif dislayed as-if it's a button), on that div is a piece of javascript that handles the ENTER as-if it's a click ($(this).click()). The click does its own thing.
In FireFox, it all works perfectly: the user presses the enter on the button and the click is fired.
In IE, the form is submitted not the click()
HELP!!
...
I'm trying to GET an HTML document using the jQuery ajax() method.
When I try and parse the returned data using $(data) all browsers other than IE are returning a DOM element, where as IE is returning NULL.
I've checked 'data' and it's a string as expected.
Any ideas what might cause this? I'm guessing it could be errors in the markup...
I'm having a problem with trying to find out whether the parent element does not have the element with the specific class like so:
// after clicking on the button inside of the form - get the instance of the parent form
var par = $(this).parent('form');
if(!par.has('warn')) {
// do something
}
Any idea how to ac...
Hello,
I'm using Jquery for some draggable divs in Drupal, and it all works great. I just need to be able to close the div / box when it's not needed anymore. Here's my code:
<?php
drupal_add_js('
$(document).ready(function() {
$(".cc-drag").draggable({ stack: ".cc-drag", axis: "x" });
});
$(".cc_close").click(function () {
...
I just wanted to check something here - do you have to echo values in PHP to retrieve them via (jQuery)XHR?
for example
PHP:
public function processRequest() {
//intercept AJAX requests
if (!empty($_GET)) {
if (isset($_GET['xhr'])) {
if ($_GET['xhr'] == true) {
//process AJAX
...
There are some scripts that I use only via ajax and I do not want the user to run these scripts directly from the browser. I use jQuery for making all ajax calls and I keep all of my ajax files in a folder named ajax.
So, I was hoping to create an htaccess file which checks for ajax request (HTTP_X_REQUESTED_WITH) and deny all other re...
Hi guys, I am trying to collect tick box values and assign the ticked boxes values to a hidden field so that I can save all of the ticked boxes values into one column in a comma delimited format, instead of many.
How could I go about doing that?
Thanx in advance!
...
Hi,
Please can someone tell me how i can call a jquery popup window from code behind in asp.net3.0?
I have already downloaded a plugin that opens an IFrame as a popup, but I need to pass a string value in the url of the IFrame and that string value is constructed at the code behind on click of the same button from which the popup will ...
$(function(){
//attach autocomplete
$("#to").autocomplete({
//define callback to format results
source: function(req, add){
//pass request to server
$.getJSON("friends.php?callback=?", req, function(data) {
...
function hideShowTextBox(tabName, index, tabContainer) {
var tabIndex = index + 1;
var dropDownId = tabContainer + '_' + tabName + '_IncomeDetails' + tabIndex + '_dpEmploymentStatus';
//this line gives a blank value..What may be the problem???
alert($(dropDownId + ' option:selected').text());
}
...
Is there any jquery plugin that does google images like smooth hover effect? Any plugin to look at?
...
Hi,
I'm using accordion to set some properties. Each header represents a property. Currently, I have included all the properties. But now I want the accordion to be dynamic depending on the selected element. For example, if I have selected a DIV, only the properties for the DIV can be clicked and edited. The other properties which are no...
Hi!
I'm having a strange problem, that I've been trying to solve for too long. I hope you guys could help.
I have floating DIVs that I want to sort with jquery-ui-sortable. All goes well if I don't use a placeholder, but when I use one strange behaviour happens when the placeholder is in the top row on the last position.
Here's the ex...