JQuery :: $(selector).attr('checked',false) Doesn't Work Since 1.6?

May 4, 2011

i'm unable to do this with jQuery 1.6 but it works fine with jQuery 1.5.2 :

$('#comment-content')
.delegate('#chkb-status-review,#chkb-status-validate','change',function(){
$('#chkb-status-review,#chkb-status-validate').attr('checked',false);
$(this).attr('checked',true);
})

No error, just not working. Maybe i'm doing something wrong

View 3 Replies


ADVERTISEMENT

JQuery :: Attr Doesn't Work In IE6 And Chromium

Aug 11, 2009

<script type="text/javascript">
$("#sitemap a:eq(1)").attr("onclick","$('#sitemap a:eq(2)').text('');
sch('brands', '<?echo $data[0]["brand"]."')";?>").text(" / <?echo $data
[0]["brand"];?>");

[Code]....

This works perfectly in Firefox and Opera, but Chromium and IE6 only change the text to value of $data[0]["brand"/"category"] (which is a string) and seem to ignore the onclick attr

View 2 Replies View Related

JQuery :: Selector Doesn't Work In IE

Sep 13, 2010

I have a problem with a jQuery selector that works in both Firefox and Chrome but refuses to in Internet Explorer.

The jQuery line looks like

$('a[id*="show_ingredients_link"]').click(function(){
var id = this.id.replace("show_ingredients_link", "");
(".ingredient_row" + id).toggle(); return false;
});

Which is trying to select a click on the following bit of HTML (this is a Django template)

<a href="#" id="show_ingredients_link{{ i.id }}">
(Customise)
</a>

The intent is to toggle the visibility of some table rows that exist just below the (Customise) link.

I can tell this is a selector problem by adding an alert(); in the click function which isn't fired in IE.

View 2 Replies View Related

JQuery :: :not Selector In IE Doesn't Work?

Feb 15, 2010

<div class="c"></div>

I do $(".c:not(:last)").css({borderColor:"#0f0"}) This is OK in Firefox, but in IE all columns get this color. The :not selector doesn't work in IE. Why not?

View 1 Replies View Related

Jquery :: Send True If It Checked Or False If Didn't Checked

Apr 17, 2011

i have some regular html form with few inputs (text). all the form parameters are sending to asp.net page that handling the data (by parameters) and thats work fine. I also have one checkbox that need to send true if it checked or false if didn't checked. all the sulotions i found on the internet is to check if the user is checked one of few checkbox or if the user checked at all, and can't find what i need, which is to send true / false parameter after clicking the SEND btn.

View 1 Replies View Related

JQuery :: Selector Doesn't Work With Any Element?

Aug 3, 2010

I'm using jQuery with Google jsapi and some strange problem occurs:

google.load("jquery", "1.4.2");
google.setOnLoadCallback(function() {
test();
});

[Code]...

When I run this code, alert returns null, not array. The same with any element, f.e. "#element". Why it doesn't work?

View 4 Replies View Related

JQuery :: Selector Doesn't Work With FadeIn/fadeOut

Sep 3, 2010

I am simply reposting my question from StackOverflow, in order for more eyeballs to see it.

[URL]

View 2 Replies View Related

JQuery :: Li Id Is Not Shown Through Attr Selector?

May 29, 2010

I have following HTML code:

Code:
<div id="nav" class="width_main last">
<ul>
<li><a href="#" id="nav_home">HOME</a></li>
<li><a href="#" id="nav_about">ABOUT GP</a>

[Code].....

View 1 Replies View Related

JQuery :: .attr (selector / Function) Does Not Change Browser Held Source Data

May 31, 2011

I'm attempting to make a simple hover image gallery with a static large image which swaps with a thumb on hover. However, on hover what happens is the new image comes up as the large image and if I then hover over another thumb it replaces that thumb with the original bigpic image source.

View 2 Replies View Related

JQuery :: Checkbox Checked, True Or False Hide Or Show Other Input And Clear Value?

Jul 28, 2011

Here my script :

<script>
$(document).ready(function(){
$('#test1_invalidation_comment__row').hide();
if($('#test1_invalidation_comment').val())

[Code].....

My script work each two submit can't figure why.

View 1 Replies View Related

Checkbox Return False If Not Checked

Feb 16, 2010

i need a javascript for my checkbox1st: need to check the checkbox to go to next page or else stay at current page with an alert popout "Please check the checkbox"

View 3 Replies View Related

JQuery :: Using :checked Selector To Control Another Module?

Sep 19, 2011

I have a question for using checked selector does not work well.Here is my code:

$("input").click(
function(event) {
var id = $(":checked").val();

[code]....

View 1 Replies View Related

JQuery :: Can't Get .attr To Work In Chrome

Oct 13, 2009

Here is the code

$(document).ready(function(){
$('img').attr({onclick: "Image_Click(src)"});
$('img').css("cursor", "pointer");
});

[Code].....

This works in Firefox but will not in chrome. In chrome the .css works and changes the cursor to the hand on hover however .attr does not work it doesn't put the onclick attribute on any of the images.

View 2 Replies View Related

Taking A True / False Statement And Making A Checkbox Checked

Apr 14, 2010

I'm getting a value from the database either true/false. I have a alert box that shows it being true/false. I want a checkbox to be checked if true else not. Here is the line of code that I have and it just automatically checks everytime, which I obviously don't want.

$('#returnableCheckbox').attr('checked', $(selectedPlatform).find ('.equipmentReturnable').val())

View 1 Replies View Related

Pass Checkbox Status To Jave Method As Parameter - Checked Is True And Unchecked Is False

Feb 23, 2009

I've one checkbox,I need to capture the status of this checkbox(i.e checked is "true" and unchecked is "false") to the java method as parameter.

I've check box like this

code:

Javascript to get the status of check box like this..

I need to pass the return value of the javascript to the java method in command link action like thiss.

View 1 Replies View Related

JQuery :: Changing The "name" Attribute Of An Item Doesn't Seem To Be Working When Trying To Change It With .attr()?

May 12, 2010

I don't know why but it's not working no matter how much i try to do it. I was planning on posting some elements on a page's div and one of them allows for mutiple things going on at once, as in allows for someone to have more than one of something. And since i don't think that it'll be working right if i try to pull it from 1+ items with the same name it'd just show the last one? Or is it that PHP would show them as a list... either way it's seeming that .attr() doesn't allow for a name change for some odd reason. And i was wondering if there was any function to allow for this to be changed easily written within jquery.

View 10 Replies View Related

JQuery :: Using A Selector With .load() Doesn't Execute Script?

Sep 30, 2009

I'm trying to load one page into another using the .load() method. This loaded page contains a script that I want to execute when it has finished loading. I've put together a simple example to demonstrate:

Index.html:
<html>
<head>
<title>Jquery Test</title>

[Code]....

When the link is clicked, the content should load and the second paragraph should fade away. However it doesn't execute. It is not just a matter of the DOM not being available, a simple alert("") won't execute either. However, if I do away with the #toLoad selector in the .load() call, it works fine. I am not sure why this is, as the <script> block is clearly in the scope of the #toLoad div? If the script from content.html was in the .load() callback, it works fine. I have worked around the problem by having the callback use .getScript () to load "content.js" afterwards and have the JS logic in there. This is arguably a more elegant solution anyway, but I'm keen to know *why* the above doesn't work, is it a bug?

View 1 Replies View Related

JQuery :: Clicking Checkbox Doesn't Change Its Checked/unchecked Status?

Apr 2, 2010

I have a set of checkboxes that trigger events on a page. Clicking a checkbox triggers the event correctly and the checked attribute changes in the page source, but in the rendered browser view the checkbox status remains changed. If I load the page with the checkboxes checked, they always remain checked in the browser view. If I load the page with checkboxes unchecked, they always remain unchecked in the browser view.

If I remove the jquery code the checkboxes work as expected, but obviously don't trigger any events. I've tested this in both Safari and Firefox with the same results.

[Code]...

On another note, I'm having problems with the back button when using the forum. If I am looking through a multi-page search and click on a topic and then click the back button, I go to the first page of the search instead of the last page I was looking at. Similarly, when I first previewed this post and clicked "back" I was returned to the topic list instead of the compose-post page.

View 2 Replies View Related

Form Always Submits - Even If My Function Returns False - Alert() Doesn't Seem To Be Working

Nov 6, 2009

I have a simple form here with a function to validate it, but I have no idea where I'm going wrong. I'm very familiar with ActionScript and C++, so I get the coding aspect of it, but one thing I'm not familiar with is how exactly JavaScript and HTML communicate. The problem is that this form always submits, even if my function returns false...but I can't even see if it returns false anyway, because alert() doesn't seem to be working either.

Here's what I have for my HTML:

View 3 Replies View Related

Cannot Get Return False To Work

Jan 13, 2009

I have look through the forum and couldn't find the answer I was looking for, I am working my way through the simply javascript book and wanted to validate a form, if the form doesn't validate then keep the user on the same page and guide it with info, if it is OK then allow it to go onto another page, the javascrpt is on an external page and is called correctly, I have removed all the link info just so that it passes the spam filter. The return false does not seem to work, it will give me the alert box and then still move onto the jowebpage.

View 6 Replies View Related

JQuery :: Selector Does Not Work On 'p' Tag?

Jan 8, 2011

Let's say I have the following HTML:

<span id="more">
Did you know?
<span>The milky way is round.</span>
</span>
Using
$("#more span").css("border", "1px solid black");

will place a black border around "The milky way is round." If I change the <span> tags in the HTML to <div> tags and issue $("#more div").css("border", "1px solid black"); The same will happen. "The milky way is round" will be framed. However, if I change the <span> tags to <p> tags, as in

[Code]...

View 4 Replies View Related

JQuery :: $.ajax With Cache: False And Async: False

Aug 8, 2010

Have an issue with using $.ajax for requests. If I set async: false it works fine, but sometimes gets cached content. If I add in cache: false then async doesn't work anymore, the next ajax request gets called before the first one finishes.

[Code]...

View 2 Replies View Related

JQuery :: Class Selector Does Not Work?

Dec 9, 2010

I've take an example from the docomentation and changed the names. I allready have written some nice functions

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

[Code]....

View 4 Replies View Related

JQuery :: Selector With 1.3.2 And Firfox 3.5.3 - Does Not Work

Sep 9, 2009

This selector does not work with Jquery 1.3.2 and Firfox 3.5.3

Using version 1.2.6 it works with out issues. Older versions of FIrefox work with no issue and the same with IE it works!

View 2 Replies View Related

JQuery :: Selector Traversing Does Not Work In IE6 / Fix It?

Aug 30, 2010

Does not work in IE6, but FF, SAF works only. any better way to solve this issue?[code]...

View 2 Replies View Related

JQuery :: Restarting Script - Doesn't Fadein The Div - Press The "a.item_add" Link It Doesn't Work

Dec 10, 2011

I've this script:

When I press again the "a.item_add" link it doesn't work (doesn't fadein the div again). how can I "restart" the script ?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved