Knockout Validation Need the Element
<p>I want to pass an entire element into my validation. </p>

<p>Element:</p>

<pre><code>&lt;input id="txtPhoneNumber" data-bind="value: Phone, intlTelInput: Phone" name="phone" type="text" class="form-control"&gt;
</code></pre>

<p>JS KO:</p>

<pre><code>            ko.validation.rules['validPhone'] = {
              validator: function (val) {
                return val.intlTelInput('isValidNumber');
              },
              message: 'Invalid Phone Number'
            }
</code></pre>

<p>The problem I have is I don't want to rewrite intlTelInput which takes a element not just a straight value. Any suggestions?</p>