on doc.ready, I've done $("tr:even").css("background-color","orange");. I then have a button that does the following: $("#tr3).remove() which removes the 3rd tr (I id'ed the third tr "tr3"). I then apply the orange bgcolor to even rows AGAIN in order to update the tr bgcolors now that the table has 1 less tr, but the tr bgcolor's don't...
Hello folks,
I'm a beginner developer but I stumbled across a case I can't solve.
I'm using ASP.NET MVC with C# plus some javascript (JQuery, JSON...).
What I have to do is to populate a dropdown based on the value chosen in other.
It seems simple (and I know it is) but this particular case is eluding me.
I've lost many hours and I'm st...
My application is a real-time apps using ajax environment. It is a live picking of schedule. The users want see the available slot in real-time way. such that they can see other ticking schedule. And i'm using ajax to replace the element with the new one.
Example:
$.get(my_url, function(data){ $('#area').innerHTML(data); });
On succ...
i have 3 form input text for phone number.
currently i am validating each input text for a digit.
i have an input message for each individual input text.
instead of doing this:
phone1: {
required: true,
maxlength: 3,
digits: true
},
phone2: {
required: true,
maxlength: 3,
digits: true
...
I'd like to create a jQuery function that accepts an image url, and when executed, displays the image full screen matching the height and width of the current page.
Thanks.
...
I am using cellsubmit: 'clientArray',
I want the submit to submit entire row values instead of only the modified cells. How can it be accomplished with jqGrid.
Any help will be highly appreciated.
...
What do I have to change to the code below in order for the user to click on a flashcard header to open and close the flashcard answer?
I couldn't get toggle() to work with fadein/fadeout
the version below doesn't respond to the click
code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xht...
How can I implement selective client side validation using MVC 2 built-in validation system?
Assume I have a checkbox in my form title "Do you have any child?" and if checked the textbox below it should be required (textbox titled Number of children).
...
I am working on a site that makes use of jquery modal dialogs to do various things like logging in and such.
However; we have one slight issue with the use of these.. which is we are using the [Authorize] attribute on a lot of our action methods and so what is happening is if the user is not logged in and hits a route that they need to ...
i just upgraded from jquery 1.3.2 to 1.4 - and I found my sortables serialize not working anymore?!
anyone else experience this problem? heres the code:
$(document).ready(function() {
$("#list_to_sort").sortable({
handle : '.handle',
update : function () {
var order = $('#list_to_sort').sortable('serialize');
$("upd...
Hello everyone,
How do I dynamically retreieve images using any jquery gallery/slideshow plugins?
I have images that I can retrieve like this..
http://localhost/images.aspx?id=1
http://localhost/images.aspx?id=2
I have already made a REST based service to return an array of those links when I pass the fromdate and todate.
After usi...
I fear I may be losing my marbles today, because I don't know how to do what I want to. I want a custom prompt that I can call from any of my other JavaScript functions. I don't know how to get this work, even though it feels like I've done it a hundred times.
Here is an example
var modal = function() {
var prompt = function(msg) ...
Hi,
I am calling a simple method on WCF side using Jquery.
$.ajax({
type: "POST",
url: "MyService.svc/TestJSON",
data:'{"BikeId":"2"}',
//data: '{"BikeId":"'+ id + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg...
I have an HTML table which has an onClick property on the row which navigates me to another page.
On this table I want to add a button, or an anchor tag which should do something else; e.g delete the row of that table.
By default, on clicking the button, it executes that JS function and then the Row JS function.
How can I set it so that...
Why is the quality of this fadeIn/fadeOut demo much smoother when viewed in Firefox/Chrome than when viewed in IE8?
http://tanguay.info/web/examples/jquerflash2
...
The jQuery .data() documentation says the following:
The .data() method allows us to attach data of any type to DOM element
I assume "any type" refers to functions as well. Say I have a div with the id foo as such:
<div id="foo">Foo!</div>
And I'd like to store a function in it called say that takes a parameter.
According to the do...
This doesn't work
if( $.browser.opera ){
$("body").addClass('opera');
}
why?
...
Are these suggestions good to give for a successful training session?
Practice time should be always given immediate after technical training?
usually after receiving any technical session about any new thing we do routine work.
If we don't do practice just after training, later when we do any work related to that training then we fee...
I'm just looking for a form that someone will put in their email and submit and that's it. They stay on the same page with ajax, and I get emailed the submission. I don't need to save it in a database. I would like to perform basic check to validate that there is a "2" and a "." in the address and there will be text put in a div sayin...
Hi,
Is it possible to check if the document is not ready and execute a function periodically in jQuery?
Simply I would like to achieve something like :
$('document').isNotReady(function(){
$('#divState').text('Still Loading');
});
$('document').Ready(function(){
$('#divState').text('Loaded');
});
Is there a built-in fun...