I have form and form text field which generates dynamically using JSP.
And I using Jquery validation but want to add functionlaty to prevent duplicate entry in the form.
E.g.
<form name="myForm" id="myForm">
<input type="text" name="text1" id="text1">
<input type="text" name="text2" id="text2">
<input type="text" name...
Hi all,,,
I am trying to do a small thing, any 1 help me, I really appricciate...
I have a drop down menu,I want when I select the value, it will call the related data, which I am access with php+mysql, I dont want to jump to other page and show
...
Currently, I check the target of the input box keyup event to see if it is contained within a div wit class "editorRow" using:
var $parentClass = event.target.parentNode.parentNode.parentNode.className;
Is there a better way to do this in case extra markup is added between the div and the span tags?
<div class="editorRow">
<li>...
Okay I have this ajax call
$('.updatecom .registercomplaint').click(function(){
updatecomplaints();
});
This calls the function updatecomplaints()
function updatecomplaints()
{
var tno = $(".updatecom #tno").val();
var status = $(".updatecom #status").val();
if(status=='DONE')
{
$(".updatecom #con").val('');
}
var tname = $(...
Hi,
I have the 12 html pages. and all this pages are loads when the left navigation bar link clicked. in this, i need to add a class to the current link, which is clicked and loaded the page. i tried with this:
$(function(){
$('#container li a').click(function(){
$('#container li a').removeClass('current');
var pat...
Hi,
I am using a Jquery Tablesorter plugin for sorting a table.I want, when I sort the text column, jquery tablesorter consider the lowercase and uppercase text equally means sort text column case-insensitively.
How can i do it?
...
I'm using the $(window).scroll(function() to set classes on the navigation of a site.
When a section rolls into view the navigation class changes to 'current'.
$(window).scroll(function() {
var top = 0;
top = $(window).scrollTop();
if(top < 1000){
$("a[href='#uk']").p...
Hi,
Just wondering if it's possible to pass a global javascript array value into a html tag, specifically inside a img (title) tag?
Basically want to know if I can do this:
<img src="_info.gif" height="26" width="37" title=myArray[5]/>
If so, how and if not, can people possibly provide other suggestions.
Thanks
...
I want to check if a page returns the status code 401. Is this possible?
Here is my try, but it only returns 0.
$.ajax({
url: "http://my-ip/test/test.php",
data: {},
complete: function(xhr, statusText){
alert(xhr.status);
}
});
...
I have an Ajaxable application which has some UpdateProgress for each postBack events. everything is good and working great.
I want to display another Indicator in my SiteMapPath bar which shows a post back is happening no matter what.
For example when user clicks on a button an UpdateProgress display an Indicator Image in central part...
What is the correct jquery statement to replace the "//Needed magic" comments below so that the image tags are hidden or unhidden based on the AJAX responses?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...
Help...?
Hey, I have the following function on an onClick call:
function addComment() {
jQuery.noConflict();
jQuery('head').append('<link rel="stylesheet" media="screen" type="text/css" href="colorbox/colorbox-images.css" />'); //this doesn't add correctly.
jQuery.fn.colorbox({inline:false, href:'boxes/add-co...
I have a on a form of mine. I´m trying to reset the value (the value typed by the user) of this field on a certain event. However, I seem unable to access it both with .val() and .html().
Any advice on this?
...
I have some objects, that keep created DOMObjects, like here:
function category(){
var domBlock;
this.block = function(){
if (!domBlock){
// Here dom-object constructor $('<div></div>'); etc
}
return domBlock; // jquery object,
// but i test and native document.createElement
...
hey guys i want to parse a restful xml web service which is gzipped using jquery or javascript . can anyone help on the same
...
Basically i'm trying to grap the text from the title attribute in a link and show it in a paragaph in another div when a user hovers of the item, and then hide it when the user moves away. so far what i've got is
(function($) {
$.fn.showText = function() {
$(this).hover(
function() {
$(this)
...
I have a line in a javascript function that sort an array of objects based on the order of another array of strings. This is working in firefox but not in IE and i don't know why. Here's what my data looks like going into the sort call, in IE7. (I'm using an array of three items just to illustrate the point here).
//cherry first then...
I made an attempt at changing the CSS of an element display: block; when another div is enabled..
Here is a jsFiddle example.
What am I doing wrong?
Website example: click FILTER MENY and select one of the filters. When the div "DU SØKER" is enabled, Filter Meny should stay open, when Du Søker is not enanbled (remove your filter choi...
$('<a />').attr({
'href': '#'
})
.append(
$('<img />').attr({
'id' : 'img',
'src' : 'edit.png'
}))
.appendTo('body');
Is the the "right way" to go about adding <a href="#"><img src="edit.png" id="img" /></a> to the body?
Also how would I add some css onto the img?
...
What would be the best way to make an element draggable when clicking anywhere in the window?
Would I have to use a container <div> that covers the whole window?
I tried making the body draggable but that didn't work.
The problem with using a container <div> is that it moves and therefore doesn't cover the whole of the screen any more...