Change width of all elements in loop separately with jQuery [on hold]

35
September 03, 2019, at 5:20 PM

I have a Wordpress custom post type for teammembers, and want to show them in a masonry layout using flexbox.

every element has this markup:

wrapper
    image
    name
    function
    quote

I want my wrapper to have the same width of the image and therefore limit the width of all the other elements.

Now, my wrapper has the size of the largest item inside the wrapper, which is the quote.

I tried using a each-function in jQuery to loop through every element (the wrapper), look for the width of the image and set that width to the wrapper.

Is there a way to set the wrapper the same width as the image inside it?

READ ALSO
Toggle checked radio button on click div [on hold]

Toggle checked radio button on click div [on hold]

I use two divs as buttons and use jquery toggle active on event clickCan anyone help me to add attribute checked to radio button inside those two divs?

34
Why does the jquery change event not trigger when I set the value of a select using val()?

Why does the jquery change event not trigger when I set the value of a select using val()?

The logic in the change() event handler is not being run when the value is set by val(), but it does run when user selects a value with their mouseWhy is this?

50
Edit and Delete buttons are not working in form how to fix it

Edit and Delete buttons are not working in form how to fix it

The code is incorrect for edit button when click on edit button it has to show the data of person which we clicked, and delete button also has to delete the selected person's data can't solve this issue buttons are not working properly give some advice...

23
Asynchronous content loading to be aborted automatically when leaving the page? [on hold]

Asynchronous content loading to be aborted automatically when leaving the page? [on hold]

I have one part of page which takes 10 seconds to calculate and load from the serverI thought I could load the page base and navigation buttons and then load this part asynchronously by jQuery

55