jQuery Validation on input-append ( Twitter Bootstrap )
问题 I am using twitter bootstrap for a site, and we use jquery.validate. I have a input element with button appended to input element. This is a required field within our js validation. The code is: <div class="controls"> <div class="input-append"> <input tabindex="1" name="url" class="input-large" id="url" type="text" placeholder="http://somewebsite.com" autocapitalize="off"> <button class="btn" type="button" name="attach" id="attach" />Fetch</button> </div> </div> Validation error class uses