This might be a strange question, however, Im trying to build a module. The module should have a image uploading feature, which is added and works just fine. I would though need to perform an onchange event when the input field is changed. For some reason, it dont work.
For example, I upload an image, this is what happens:
- The text files (normally hidden) is changed correctly
- The thumb is changed correctly
But, this doesnt fire off. If I manually change the input field it works as expected.
Code: Select all
<input type="text" name="input1[thumb_image]" value="<?php echo isset($section['thumb_image']) ? $section['thumb_image'] : ''; ?>" id="input-image1" onchange="$('#header').css('display', 'none');" />
Really thankful if you know any suggestions!