Select elements inside of a form
I'm trying to select a div inside of a form. Quickly I can select the form using this first console line, left out wrapping elements for simplicity:
- console.log($(mythis).find('input.img1').next('form'));
- <input class="img1">
- <form method="POST" id="custom_12_img1">
- <div class="drop-field">
- <img class="preview" src="#" alt="Preview Image">
- </div>
- </form>
- ... other forms
And when I try to select inside of the form, it says 0: $(mythis).find('.ffproedit').find('input.img1').next('form').find('drop-field'));
Is there something special you have to do, to select elements inside a form?