Hi guys,

I have codes below,
Code:
    <div id="uploadBox" class="well" onClick="$('#photoimg').click();">
        <button class="btn btn-mini btn-primary" type="button">Upload File</button>
    </div>
    <input type="file" class="hide" name="photoimg" id="photoimg" onchange="$(this.form).submit();"/>
Just wondering what these codes mean,
Code:
     onClick="$('#photoimg').click();"
Okay let me guess, when I click the button, it will invoke the <input type="file" ...> and auto submit the form with the codes,
Code:
onchange="$(this.form).submit();
Am I right or am I wrong?

Thanks in advanced.