Hi all:
I would like to write a syntax whose effect is opposite to $(parentID).children("tr.sc:hidden").
Do jQuery get ("tr.sc:show") or similar syntax?
Thanks
Ok so, Im using jQuery to do username and email checks before a signup...
this sets a variable true or false depending on the response from php.
$(document).ready(function() {
if (usr_checked == true) {
if (em_checked == true) {
$("#registerbttn").removeAttr("disabled");
}
}
else {
$("#registerbttn").attr("disabled", "disabled");
}
});
How exactly do i get it to watch those variables live?
Thanks :D
Hello all,
I add html to a page using JQuery's html() function. This works great on most browsers except IE6.
I can work round this by adding a click event etc but I want to fix the issue without extra tape!
Any ideas why this doesn't work on IE6?
$('#button_holder').html('<a href="#" onclick="run_activity_upload(); return false;" id="save_button">Upload</a>');
Thanks,
Abs
Hi i need with jQuery to change data in input field when user click on some link
<input value="height-size-width">
so when user click on some
<a href
link with width id script need to change only widht in input field.... if user click on height a href link script need to change only height in input field...
Like youtube embed option
Any help?
I see that quite often in some Jquery plugins
$('#foo').myPlugin({
foo: 'bar',
bar: 'foo'
});
I'm talking about the {} in the .myPlugin() part. I see quite often anonymous functions like
.click(function(){
});
but the above syntax looks different
thanks for your help!
Hi all,
I am trying to use JQuery to highlight the checkboxes checked by a user,
and when they will be un-highlighted when the user unchecked those checkoxes.
But how is it possible to do this effect?
i use such jquery treeview
if parent node don't have child, it don't render '+' near it, how can i forse display it? i see such solution- if node don't have any child, add there fake childs and mark parent node not opened
can you give any solution with sample?
i have tried jQuery('#form_id').serialize(). this returns only the form data as a url encoded string. is it possible to get the form data as an object?
Can anyone see any reason why IE8 might not run this jQuery?
$("#slid").toggle(
function() {
$("#Silver").animate({top: "25px"}, 200);
},
function() {
$("#Silver").animate({top: "89px"}, 200);
}
);
It runs the first function but ignores the 2nd top: "89px" and ideas? Or a better way the same toggle effect can be achieveD?
Hello.. I know that height() method of jquery returns a number unitless...
How can i be sure that this number is in the unit i want?
I want to work with centimeter cm any ideas?
Very simple question: I want to optimize the following jQuery code with maximum readability, optimal performance and minimum fuss (fuss = declaring new variables etc):
$(".addthis_toolbox").append('<a class="addthis_button_delicious"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_facebook"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_google"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_reddit"></a>');
.
.
.
var a=$('#start > div:last-child');
var b=$('#start > div.live')[0];
alert(a==b)
alert(a==$(b))
it always false,
how to compare two element in jquery,
thanks
Using jQuery's 'submit' - is there a way to pass additional parameters to a form? I am NOT looking to do this with Ajax - this is normal, refresh-typical form submission.
$('#submit').click(function () {
$('#event').submit(function () {
data: {
form['attendees'] = $('#attendance').sortable('toArray').toString();
});
});
jQuery 1.4 breaks various modules and is not ready to replace 1.3.2 wholesale. But on various pages with complex javascript interactions, I need 1.4.
What's a good way to force drupal to use 1.4 on specific pages?
Thanks.
How do I rewrite this using jQuery instead of the onchange event?
<input name="PasswordName" type="password" id="passwordID">
<p>
<input type="checkbox" onchange="document.getElementById('passwordID').type = this.checked ? 'text' : 'password'"> Show Password
</p>
i have a html page in which 10 table , i want to use jquery table sorter for one table only,
But its CSS is implementing in all tables. is there any solution for this
I am using the jQuery plugin Cross Slide. My page is working fine in Chrome and Firefox. But in IE 7, I get:
Debug error as Object expected on line 1:
$(document).ready(function() {
$('#image').crossSlide({sleep:4,fade:1},[{src:'images/1.jpg'},{src:'images/2.jpg'}]);
});
How can I fix bug in IE 8 & 7?
i am using .prepend() to load data after i POST a form with .ajax().
once the new elements are added, my functions won't work on them.
if i link the js file directly in the prepended data, the functions work, but when i POST, i starts multiplying the events.
i have a feeling it has something to do with binding, but i am not able to figure out exactly how to handle it.
any ideas?
thanks!
Hi.
I'm trying to calculate text width using jQuery. I'm not sure what, but I am definitely doing something wrong.
So, here is the code:
var c = $('.calltoaction');
var cTxt = c.text();
var cWidth = cTxt.outerWidth();
c.css('width' , cWidth);
Thank you for your help in advance!