Hi,
I am using the jQueryUI Date Picker on one of my forms and if you select the field that I have attached the datepicker to, then select a date, then click "Submit" it should submit the form - which it does in IE but not in Chrome.
In Chrome, it re-opens the date picker and I have no idea why. I've put the following on pastebin to s...
$(function() {
if(map_flag == 0)
$("#buttons").append(' <input type="button" value="Import" class="ui-state-default ui-corner-all" onclick="javascript:import_q();" />');
});
function upload_1()
{
$("#buttons").val('');
$("#buttons").html('')
}
In upload_1 function how to remove the ...
Hi,
I've got a big HTML page. Some elements (can be p, h1, div etc.) are tagged with the class 'keep_me'.
I need to remove all the elements present in the page WITHOUT this class? Any idea on how to do it with jQuery?
I tried with something like that, but it doesn't work (obviously ;) :
jQuery('#content *').remove(":not('[class=keep_m...
I know I can use something described here: http://stackoverflow.com/questions/596351/how-can-i-get-which-radio-is-selected-via-jquery
i.e. jQuery("input[name=myradiogroup]:checked").val() to get the selected radio button value. But I'd like to cache the radio group and determine which value is selected at a later point in time.
I want...
Hey all, having an issue getting asp buttons to interact with JQuery. I'm basically trying to hide a div that contains a form and replace it with an processing image. It works fine for me when I use an HTML input button as the trigger but when I use an aspButton nothing happens.
This works (the id of the HTML button is 'btnSubmit'):
<s...
$(document).ready(
function()
{
$('input[id^="btnRemoveCategory"]').bind(
'click',
function(){
if($('input[id^="chkIsBottom_":checked]'))
alert('YES YES YES!!!!');
else
alert('No NO no!!!!!');
I've tried with the:
if($('input[id^="chkIsBottom_"]').attr(chec...
I am new to jQuery and i came across a select box population code which work perfectly in Firefox,chrome, opera but not in IE.
In this code the first select will be populate the directory structure and as user select the select box the second select box should be populated according to users choice. But in IE the second select box is not...
Given an input defined thusly:
<input type="text" id="connectionsCount" />
shouldn't this code exclude actions that would otherwise execute.
$(".cartOption .value .input").not('#connectionsCount').each(function () {
...
I am currently injecting an iframe and binding a keyevent both to the document and the iframe.
Can I select both the iFrame and the document in one row?
notice the iframe must have .contents() after the selector
// wait for iframe to load
$('iframe#iframe').load(function() {
// event bind to document
$(document).bind('keydown'...
Hi, I'm trying to get a jQuery selector for the child of a sibling (multiple sections on the page so need to just reach the sibling's child (rather thna being able to use a general selector).
HTML:
<div class="tour-section">
<div class="screenshots left">
<div class="tab tab1"></div>
...
Hi friends,I need to access a SPAN tag with in every DIV tag so i used this following code
$("DIV").click(function(){
$(this + "SPAN").show();
});
Is the above code is correct? Its not working for me! Its showing nothing too..
Please help me
Thanks,Praveen J
...
Hello friends,
I´m using an unordered list to replace the select function. I have a state and city combo where I choose the state and then it auto complete the city. A traditional select for registration.
The problem is that I´m able to do the jSon stuff, but when I load the < li > into the cities I´m not able to get the click. I will ...
I know to style odd / even table cells using jQuery, but how do i style the 3rd, 4th or 5th element?
<table width="300" border="0" cellspacing="0" cellpadding="0" id="Weekdays">
<thead>
<tr>
<td>Week Day</td>
<td>Short Name</td>
</tr>
</thead>
<tbody>
<tr>
<td>Monday</td>
<td>Mon</td>
</tr>
<tr>
<td>Tuesday...
Would it be possible to select using a regular expression in jQuery? Something like
$('input[name=^[a-z]+_[1-9].*]')
...
hellooo,
I have this code
BOX
and After:
$(".boxAlert").click(function(){
$(this).remove();
//$(this).fadeOut(500); });
It's OKAY, when I click on the SPAN with class boxAlert, it removes it.
But I can not remove the SPAN's I created this way..
$('#myDiv').append('Invalid Mail');
The SPAN I create this way ...
how to assign line numbers for a textarea using jquery.the line numbers are suppose to appear on the lefyside of the textarea
<textarea name='comments' id='comments' cols=10 rows=10></textarea>
And the linenumbers and text should be inline with eachother
...
iam having the table with id "someTable" where i have the rows dynamically from PHP
i want to apply the contextmenu to every first td in every row .iam using the
context menu plugin from here (http://www.trendskitchens.co.nz/jquery/contextmenu/)
$("someTable td").contextmenu('mymenu')(function (){
//would the above state...
Is there any way to get the text of the selector that invoked some function (if it exists) from within the function?
For example
$('#foo, .bar').click(function() {
// Here I want to figure out if there was a match on #foo, or .bar
});
Basically I want to have a compounded selector like the one above (http://api.jquery.com/multip...
How to change css display none or block property using Jquery?
...
I want to select an html element with jquery using its attribute value.
I use $('td[i=0]') and it works correctly. What if i want to use 2 attribute together.
For example, I want to select td element with attributes i="0" and j="2" .
...