jQuery

Welcome to the portal about jQuery.

New Topics

jQuery: Change the Title of an HTML Page

How can I change the page title of an HTML page with the help of jQuery, even after loading the page? Is that...

Question | 1 Answer

jQuery: Set the width of an element in percent

I would like to change the width of some elements with jQuery. The information should be provided in percent, so I would like to set the element with...

Question | 2 Answers

jQuery: Check if an element is invisible

Using the functions .hide(), .show(), and .toggle(), I can easily change the visibility of items with jQuery. But how can I use jQuery or JavaScript...

Question | 2 Answers

jQuery: Show and hide elements

In this tutorial, I'd like to show you how to make a visible HTML element disappear or make an invisible one visible again with the help of...

Tutorial | 0 Comments

jQuery: Show a DIV - Hide other DIVs

Some time ago I have written a tutorial in which I described how to toggle (show and hide) an area or a DIV container with JavaScript by clicking a...

Tutorial | 0 Comments

jQuery: Set event.preventDefault within GET or POST Request

I have a submit form on my page which only should be submitted if a specific condition is met. The problem is that this condition is not yet fixed at...

Question | 1 Answer

New Answers and Comments

Stefan Trost: You can change the title of the page with the help of jQuery as follows: $(document).prop('title', 'New Title'); However, it is...

Question | jQuery: Change the Title of an HTML Page

Guest: Thank you so much ! I'm facing a bit of a problem because it doesn't work when I switch to another page on the table although they have the...

Tip | jQuery: Disable Submit Button if no Checkbox is selected

NetLabel: You can also directly address the CSS of your element. That would look like this: $('#div1').css({'width': '50%'}); The result would of course be...

Question | jQuery: Set the width of an element in percent

Stefan Trost: You can use the function width() for that. With the code $('#div1').width('50%'); you are setting the width of <div id="div1"> to 50...

Question | jQuery: Set the width of an element in percent

NetLabel: If you want to select all elements that are visible or invisible, you can use :visible and :hidden in the following ways:...

Question | jQuery: Check if an element is invisible

Stefan Trost: You can use the selectors :visible and :hidden. This can look like this, for example: if ($('#element1').is(":visible")) {  ...

Question | jQuery: Check if an element is invisible

Popular Topics

Show more

Participate

Everyone can participate in Askingbox. Open your topic directly in this category:

 
If you should have any questions: That’s how it’s done.