2014-06-11 35 views
0

我使用jQquery插件引導數input.I給jQuery的鏈接和CSS鏈接像在引導的jQuery的插件工作不

<head> 
<link rel="stylesheet" href="<?php echo base_url(); ?>template/css/bootstrap-formhelpers.css"> 
<link rel="stylesheet" href="<?php echo base_url(); ?>template/css/bootstrap-formhelpers.min.css"> 
<link rel="stylesheet" href="<?php echo base_url();?>template/css/bootstrap.min.css"> 

<script src="<?php echo base_url(); ?>template/js/bootstrap-formhelpers.js"></script> 
<script src="<?php echo base_url(); ?>template/js/bootstrap-formhelpers-number.js"></script> 
<script src="<?php echo base_url(); ?>template/js/bootstrap-formhelpers.min.js"> </script> 
</head> 

,然後我的代碼是

<?php 
    $data = array('id' => 'target'); 
    echo form_open(base_url().'/index.php/account/authentication',$data); 
?> 
<input type="text" class="form-control bfh-number" data-min="5" data-max="25"> 
<?php echo form_close(); ?> 

但沒有工作,我一次又一次地檢查路徑。我在做什麼錯。我使用codeigniter和bootstrap。

+0

您需要提供一個工作示例,例如一個URL或jsfiddle。你的服務器端代碼在這裏沒有什麼幫助。 – RoToRa

回答

0

仔細檢查form_open()函數的HTML輸出。如果<FORM>標籤格式不正確,則其中的文本輸入將不會變爲bfh-number。