javascript - Change the input class when an image is selected (But not yet uploaded) -
i have simple image uploader (front end}
<input type="file" class="imgupload" name="file" /> but made padding , background image inside div overflow hidden background image visible form not, form can still used looks image
is possible change class when image selected, background image can changed? if is, how done? if not, there way achieve similar? in advance
just bind change event:
$("input[name=file]").change(function() { $(this).addclass("someclass"); });
Comments
Post a Comment