How do I set/unset a cookie with jQuery?
How do I set and unset a cookie using jQuery, for example create a cookie named test and set the value to 1? … Read more
How do I set and unset a cookie using jQuery, for example create a cookie named test and set the value to 1? … Read more
I’m refactoring some old JavaScript code and there’s a lot of DOM manipulation going on. var d = document; var odv = d.createElement(“div”); … Read more
I have a table column I’m trying to expand and hide. jQuery seems to hide the <td> elements when I select it by … Read more
I would like to find out, in JavaScript, which element currently has focus. I’ve been looking through the DOM and haven’t found what … Read more
I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript. 2 … Read more
So jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttribute(‘style’); //do i use: $(this).prop(‘style’); //or: $(this).attr(‘style’); }) or in this case … Read more
How can I get the selected text (not the selected value) from a drop-down list in jQuery? 3 35
How can I change the class of an HTML element in response to an onclick or any other events using JavaScript? 3 34
Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()? How would you test if an … Read more