Pattern Match

1 posts, 0 answers
  1. Andre'
    Andre' avatar
    1 posts
    Member since:
    Sep 2012

    Posted 12 Sep 2012 Link to this post

    I am using the pattern attribute to do validation on a textbox I am using ^http expression to make sure the text entered starts with http but it doesn't seem to work properly.  The only valid input is http exactly here is the html being rendered - 

    <input class="k-textbox k-textboxAd1" id="id" name="name" pattern="^http" type="text" validationmessage="Please enter a valid URL it must begin with http(s)" value="" />

    Am I doing something wrong?
Back to Top