javascript - nyromodal doesn't pass text area val() in afterShowCont callback -
i trying provide character count of text area after modal box pops , unable work no matter counter library use. if move textarea outside of nyromodal counter works expected. after debugging bit appears inside jqeasycounter library there call .val() of textarea ('comment') in example , value returns 0. think not using callback correctly, or need pass on additional.
$('.nyromodal').nyromodal({ callbacks: { aftershowcont: function(nm) { $('#comment').jqeasycounter(); } } });
u may have imported jquery file more once may
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
and may have included like
<script type="text/javascript" src="js/jquery.min.js"></script>
so work when remove lower 1 ... dont remove upper 1 because nyromodal working on version ...
hope work ... let me know if there issues
Comments
Post a Comment