2015-10-06 57 views
1

我更新到最新版本的流星,我也運行最新版本parsley.js我的驗證已停止工作似乎Parsley.JS流星(再)沒有工作

$('#create-post').parsley().options.trigger = 'change'; 
$('#create-post').parsley().reset(); 

是不是流星發射(上渲染模板),但在JS小提琴工作正常 - https://jsfiddle.net/grbcwa9b/

真的不知道爲什麼它不工作了有沒有其他人遇到這個問題

+0

任何錯誤信息? –

+0

沒有爲什麼很難真正調試問題 –

回答

0

我終於能得到這個我創建底部帖子id twi ce一次在我的導航和一次在形式這是造成衝突

<li class="{{isActiveRoute regex='create-post'}}"> 
<a href="{{pathFor 'create-post'}}" id="create-post"><i class="glyphicon glyphicon-plus"></i><span class="title">{{mf 'create-post' 'Create Post'}}</span></a> 
</li>