Does anyone know of a neat jQuery effect that will make an image randomly flicker or flash? Most of the posts on here are "how to stop flickering" etc, so it's pretty hard to find anything about actually making the image flicker ON PURPOSE.
...
Hi everyone,
I wrote this code and it is working nicely in Google Chrome but when it comes to Firefox and other major browsers, it is not even changing a little bit thing :
jQuery("div[style*='line-height:25px']").contents(":not(nodeType!='1',br)").wrap("<div style='margin-bottom:9px;line-height:normal;margin-top:4px'>");
jQuery("div[s...
All,
I want to send a variable "itemId" via GET to a controller action through AJAX. In the Controller Action, I should be able to retrieve the value using $_GET["itemId"];
Can I send the querystring with "data" tag instead of appending it to the "url"?
I have the following code:
$.ajax({
type: 'GET',
url: "/con...
I have a javascript function that I am trying to get to update a label.
If I replace the label with a textbox it works fine, but with the label nothing happens!
An example of a label:
<label id="163" name="163">Some text.</label>
javascript code:
$("#163").val("meep");
...
Say I have the following HTML:
<div>
<span>span text</span> div text <span>some more text</span>
</div>
I want to make it so that when I click on span, it will trigger some event (e.g. to make the text bold), that's easy:
$('span').click( ... )
But now I when I click away from the element, I want another event to trigger (e.g. to...
Is there a plugin for jQuery that would replicate the functionality exhibited on Yahoo's Finance site? http://finance.yahoo.com/
(The yellow pop up, then the highlighted sections on the page...)
I've been scouring Google and haven't come up with anything similar yet. Thanks!
...
I have a simple form like below that I have added the jQuery validations plugin onto (http://docs.jquery.com/Plugins/Validation). I have this form in a modal popup window so if there are errors and the user closes the window when they open it again the form still has the errors. In my popup close callback I tried calling resetForm() but ...
Hi all,
I have a form that, when submitted, shows a busy animation and disables the submit button.
Anyone know how to query Microsoft's Sys.Mvc.FormValidation to see if the form passed its test so I can prevent the busy animation showing if the form hasn't actually been submitted? Is there some other work-around?
At present my client ...
I have a form where I am calling the valid() function on each form element separately. I have an field named "altemailaddress" that I set a rule to be "email" and required is false. However the valid() function returns false if there is no value in the input text box.
jQuery("#aspnet-form").validate({
onsubmit: false,
rules: {
...
is this possible?
<div id="anything">I will change</div>
<div id="id" jq="$('#anything').css({background: 'red'})"></div>
var x = '$('#id').attr('jq')';
jQuery.call(x);
Basically i would like use an attribute jq on any tag to act like a onclick would on html that calls the javascript statements.
btw jQuery.call() is for demonstratio...
Greetings.
I am trying to modify Shawn Mayzes JQuery Google Maps plugin to support retrieving a "current" latlng property.
Shawn's plugin and examples can be found here: http://www.mayzes.org/googlemaps.jquery.examples.html
The example on which I am focusing is "Map Geocoding Simple" (http://www.mayzes.org/fragments/new/geocode.html...
I have a simle html div with a variable number of input checkboxes and i whould like to chek which chekbox is cheked and which isn't
HTML code:
<div>
<input type="checkbox" val="1"/>Check One<br/>
<input type="checkbox" val="2" checked="checked"/>Check Two<br/>
</div>
Javascript code:
var $kids = $("div").children("input");
...
is the following safe?
index.html
<div id="loader">loading...</div>
<div onclick="foo()">click me</div>
<div id="change"></div>
<script>
function foo(){
jQuery.ajax({
url: 'get.html',
success: function(txt){
var x = $('#loader').html(txt)
x=...
I have a series of divs that are hidden and I would like to be able to toggle their visibility individually.
The HTML:
<h2>Section One</h2>
<p>In luctus ullamcorper urna suscipit fringilla. Nulla facilisi. Curabitur dui nulla, interdum eget vehicula mollis, mollis at quam. Vestibulum scelerisque volutpat tortor, vel euismod...
I am making a jQuery ajax post in a javascript function used by a asp:CustomValidator control. The web method returns a boolean. How do I convert the result make the validation script function correctly.
Client side code
<script language="javascript" type="text/javascript">
function ValidateInput(source, args) {
if($('#MyTxtBox')...
I'm working on the following selector in jQuery:
$("div[id^=WebPartWPQ]:has(table.ms-sitedirresultssort) td:contains(' : ')").closest('div')
In other words: select the div with ID starting with WebPartWPQ that has a table with class ms-sitedirresultssort that has a td containing the text :. At the end of this question is the HTML rend...
I have the following and in this order:
<script type="text/javascript">
$(document).ready(function(){
var overwrite = $('#itemList input:radio:checked').val()
alert('value = '+ overwrite);
});
</script>
<body>
<form ..... >
<div id="itemList">
Overwrite?
<input type="radio" value="Yes" class="overWrite" nam...
I have many of these loading signs.
<span id="loading" rel="1n" style="display:none;">Loading...</span>
<span id="loading" rel="2a" style="display:none;">Loading...</span>
<span id="loading" rel="3w" style="display:none;">Loading...</span>
Notice the only difference is rel.
How do I write a JQuery script so that I choose which one to...
I have this code:
$(".testing").sortable({
helper: fixHelper,
containment:$("testing").parent(),
start:function(){
if($(event.target).hasClass("test")){
alert("hello");
}
if($(this).hasClass("test")){
alert("hello");
}
}
}...
I am relatively new to jQuery. What I have is an app that is displaying a list of content items from the database in a table.
If I click the title link of the page, it will load the page to edit in a tab (clicking teh tab lets me view that form to edit).
My problem is that in using .load and creating the html inside an empty div, my c...