Can you you tell me what would be the difference between of the ID:
var id = $(this).attr("name");
var id = 1;
The problem is that when I'm using the first variable example DOESN'T WORK
$.ajax({
type: "POST",
url: "http://localhost/",
data: dataString,
cache: false,
...
I have a form that I want to create whereby the user enters in one digit per text box. I need all those digits to be correct when the user clicks a button - imagine the iPhone Passcode lock feature.
Ideally I'd like the button only to be clickable when all the digits are correct (perhaps with a variable I define) - otherwise it doesn't...
I have two pages that use the flot jquery plugin, and they both work great in most browsers, and even in IE6. The problem is that the canvas portion of the graph doesn't show up in IE8 and possibly IE7. The key is there, and the axis labels are there, but not the graph itself.
http://www.statisticshowto.com/calculators/interquartile-ran...
I have some jQuery/JS below. The first thing to run is the alert box at the end.
$(document).ready(function() {
$("#id1 img , .msg").stop().animate(
{ width: '300px', height: '300px'},
{ duration: 'slow', easing: 'easeInSine' }).pause(3000);
$(".msg").animate(
{ width: '50px', height: '50px' },
...
I'm wondering what are some common misconceptions of jQuery? I've found there is a lot of hype around the technology and I'm trying to wonder how much of it is true. And how does it compare to the other Javascript libraries like mootools etc.
...
I'm looking at the code from this: http://www.javascriptkit.com/script/script2/jkmegamenu.shtml
I would like to modify the code to make the menu drop up instead of drop down. Can anyone help me with this? Thanks!
...
jQuery uses lambda functions extensively wherever a function is to be passed into another function. But Visual Studio 2008 would not honor break points that are set inside a JavaScript lambda function. Anybody knows any workaround for this other than giving an explicit name for the function and passing this to the jQuery functions?
...
Couldn't comment on this post, which states the problem I'm experiencing:
http://stackoverflow.com/questions/1588671/jquery-remove-on-element-doesnt-hide-used-space
I can reproduce this in IE7 (and a colleague in IE6), my link is here:
http://www.pritaeas.net/tools/linkfarm/
If you select a tag the list gets filtered and the tag adde...
Hello, I need a little help adding a custom addMethod to my validation rules. Here is where it explains how, but I'm still stuck http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage any help would be awesome! I want to add the ability to prevent URL's (www or http://) from being entered in the textarea field (A...
I have a form within an ASP.NET MVC application and I'm trying to submit it via AJAX but whenever I replace my form submit with jquery like so:
$('#formID').submit(function() { });
it still does the actual post back in the form itself instead of jquery taking over, am i doing something wrong?
...
Consider the term 'dashboard' as a generic UI pattern where multiple views stream different aspects of an site - new users, new orders, new questions, and so on. Essentially splitting a stream of log entries, each to its own viewport. Viewports might want to drill down to detail records or might want to hide itself until/unless wakened b...
I am wondering which way would end up being faster, selecting elements by:
$('element[href=#my_link]');
or:
$('element.my_class');
I don't like repeating myself when I write code, so I prefer to write it the first way for the most part because then I can add information to it like:
<a href="#delete_1">Delete</a>
$('a[href^=#dele...
I need to have a JQuery color Picker, where I can change the different HTML elements on a page. It should be easy to implement, I should be able to pick a color, enter RGB values and Hex values. Which plugin is the best hassle free to use.
...
I am using jQuery 1.3.2 and I am running into exactly the same problem mentioned here.
var tmp = jQuery(selector_string);
tmp.attr("selected", "selected");
I am getting value of tmp correctly in IE6. However setting the attribute to 'selected' is failing. It works in IE7 and in Firefox.
Another person having the same problem.
...
Hello
I have an ASP.NET application in which i want to post data using jQuery to another page. It means i want post the data of page.
How can i do this with jQuery or AJAX?
Please help me.
$(document).ready(function() {
alert("start");
$("#btnSave").click(function() {
alert("start1");
var aa = '...
At the WES 2009 event RIM announced that they were almost 100% tested with using JQuery in Widget development, does anyone know how this works?
I've tried following the demo from their site and added the following:
<head>
....
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
</head>
<body>
....
<a href...
I'm this code for a simple pagination
but in IE the URL I'm getting is not right and it breaks my pagination
I suspect something with $(this). ; but I am not sure what-
firefox url
http://mysite.com/photos/Tehrān/Tehrān
IE url
http://mysite.com/photos/Tehran/Tehran
this is jquery code
$('.more').live('click', function(eve){
e...
I have a fairly simple menu structure, one level deep, made using UL/LI's as below...
Menu Item 1
Menu Item 2
Menu Item 3
Sub Item 1
Sub Item 2
Sub Item 3
Menu Item 4
The menus are displayed in a vertical fashion with a roll-out on hover, in exactly the same basic format as the vertical suckerfish demos shown h...
This is the JSON I found whilst trawling the BBCs API site
http://cdnedge.bbc.co.uk/nol/ukfs%5Fnews/hi/front%5Fpage/ticker.json
I'd like to turn these entries into an ordered list in the form of
<div id="news">
<ul>
<li><a href="'http://news.bbc.co.uk'+ entries.url +"><span class="+isBreaking+" entries.headline</span></a></li>...
How do I:
detect if an HTML checkbox has be clicked/selected?
retrieve which checkbox(es) have been selected?
Example code:
<FORM ACTION="...">
<INPUT TYPE=CHECKBOX VALUE="1">1 bedroom<BR>
<INPUT TYPE=CHECKBOX VALUE="2">2 bedrooms<BR>
<INPUT TYPE=CHECKBOX VALUE="3">3 bedrooms<BR>
<INPUT TYPE=CHECKBOX VALUE="4+">4+ bedrooms<P>
</FORM...