I have built a jQuery rotator to rotate through 3 divs and loop them. I would like to add the functionality on mouse over to "freeze" the current div and then start again on mouse out.
I've thought about setting a variable to false at the start of the function and setting it true when it's on it's current frame but I've got my self a...
I have:
$('th a').click(function() {
var $th = $(this).closest('th');
$th.toggleClass('selected');
How do I say:
if ($th('.selected')) {
alert('selected');
} else {
alert('not selected');
}
...
I need to assign a custom property to a jQuery object. Here is the object:
var object = $("<div id='item'></div>");
I need object to have a custom data member. How can I add this?
...
Hey, I am working on an iPhone Web App using HTML & CSS. I have currently got the JavaScript/HTML5 Geolocation picking up my current location and showing me it on a Google Map using Lat & Long values.
I also want to add these Lat & Long Values into the 'address' text field on the page so I can submit the details.
Here is the link: http...
I am working on an interface which involves A LOT of javascript. There is a calendar and blocks drawn on the calendar.
The calendar is a jQuery widget, which works beautifully.
The blocks drawn on top are also jQuery widgets. While it works - I am wondering, every time I create another block, is the widget fully duplicating, or is it...
We are using a jquery accordion on our site : http://www.racedayworld.com
It basically lists events under each month...
Apparently people are finding difficulties knowing how it really works and they don't see at first glance that there are more events under each month (that you click to expand)
So I was thinking about opening two at...
Hi,
This issue occurs in our beloved Internet Explorer 7:
I have a list of items, each with a hidden child div. When user clicks the "expand" button in any list item, the hidden div will expand downwards and push all content beneith it lower.
This works just as it should in FF, Chrome, IE8 - but IE7 will not expand the parent element ...
Hello,
I have the following array:
var idParam = ["1","2","3"];
I want to send this data as request using jQuery.ajax, what I'm doing:
$.ajax({
type: "GET",
url: "Services/GetInfo.ashx",
data: { "id": idParam },
contentType: "application/text",
dataType: "json",
success: functio...
Googled it thousands of times, No one gives a complete solution of how to make Tinymce paste in plain text by default and strip out any formatting without clicking the "paste as text" button.
Any Ideas of how to implement that? or how to enable the "paste as text" button automatically?
Thank you
...
So if my start date is : 04/22/2010 then my end date selection can be up to 04/22/2011 and after 04/22/2011 are dates all disabled.
Here is what I have for both selection start and end date:
$(document).ready(function () {
$('#endDate').datepicker({ showOn: 'button',
buttonImage: '../images/Calendar.png',
buttonIm...
I have been working on this script:
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript">
$(function(){
compentecy = $('#competency_id');
$('#add_competency').bind('click', function(e){
e.preventDefault();
$.post('/script.php', {competency_id: compentecy.val(), syllabus_id: ...
I am using mscaptcha image and trying to only reload the captcha image on button click. Seems like the captcha image is being loaded twice sometimes.
<script type="text/javascript">
$(document).ready(function() {
$('#btnSubmit').click(function() {
$('#dvCaptcha').load('default.aspx #dvCaptcha'); ...
I would like for someone to explain this to me:
function myFunction(array){
array = $.grep(array, function(n,i){return n > 1 });
}
var mainArray = [1,2,3];
myFunction(mainArray);
document.write(mainArray) // 1,2,3, but i'm expecting 2,3
but if i do something like
array[3] = 4;
in place of the $.grep line, i get 1,2,3,4. ...
I'm new to jQuery, so please bear with me. I'm trying to make my submenu appear on hover. The second set of <ul> is for submenu.
$(document).ready(function(){
$('ul.menu.li').hover(
function() { $('ul', this).css('display', 'block'); },
function() { $('ul', this).css('display', 'none'); });
});
<ul id="menu">
<li><a...
i am working on asp.net using C# and using jquery datepicker
my question is, how can i disable dates which are federal holidays?
i have a dynamic dates which comes from sql server.
anybody have done something similar or any idea how can i achieve this?
$(document).ready(function () {
$('#endDate').datepicker({ showOn: 'butt...
I need to set the Options for Jqgrid like toppager, forceFit for which the "Can be changed?" value is set to "No" hence i tired it to set by adding it this way
jQuery(document).ready(function() {
jQuery("#list").setGridParam({ forceFit: true, toppager: true }).trigger("reloadGrid");
jQuery("#list").jqGrid({
url: '<%= Url.Action("Grid...
What is the best lightweight way to randomly show inline images from a folder on each refresh or on load a page ? using jQuery.
like jQuery version of this http://javascript.internet.com/miscellaneous/random-image.html
Update: 24 April
This is exactly what i want i just need unobtrusive jQuery version of this
<div class=”me-box”>
<...
Hello,
I have one registration form, I don't want people to register login username with unicode characters. How can i put server side validation PHP + client side validation javascript or jquery.
Please kindly help me out. Thank you.
...
I have seen the client side validation examples and videos on internet by using Html.EnableClientValidation(). But all target on the simple data model.
Does the Html.EnableClientValidation() work on the nested data model like below?
public class Person
{
public Name Name { get; set; }
public string Gender { get; set; }
} ...
I have a webpage using jquery 1.42
The following 2 segments of code live in my page.
$('body').delegate('h2', 'click', function() {
$(this).after("<p>delegate paragraph!<\/p>");
});
$('body h2').live('click', function() {
$(this).after("<p>live paragraph!<\/p>");
});
The live method always works, yet the delegate doesn't fir...