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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -