Hello,
I have downloaded the plugin maskedinput from: Click Here
Trying to use it on a site I am developing with codeigniter and foundation framework, the index.html file that comes with it works well on my site, I get this error: TypeError: $(...).mask is not a function
The jquery files are included, I checked.
My code is exactly like the example.
In my head tag:
<script src="<?php echo $templateAssets; ?>javascripts/jquery-1.9.0.min.js"></script>
<script src="<?php echo $templateAssets; ?>javascripts/jquery.maskedinput.min.js"></script>
<script src="<?php echo $templateAssets;?>/javascripts/modernizr.foundation.js"></script>
I have an input with a phone id:
<?php
$phone = array('name'=>'phone', 'id'=>'phone', 'value'=>set_value('phone'));
echo form_label('Phone Number', 'phone');
?>
<div class="row">
<div class="six columns">
<?php echo form_input($phone); ?>
</div>
</div>
And my jquery:$('#phone').mask("(999) 999-9999");
Why do I get this error?