nikku/jquery-bootstrap-scripting

Not working together with jquerry validation

bharatkrishna opened this issue · 2 comments

I tried you plugin and it works well. But I am not able to integrate jquerry search plugin with this. On the modal popup, I have a form and I want to make the form text box as a required field. Could you tell me how I can achieve this? I was using the example from here: http://docs.jquery.com/Plugins/Validation#Example
But when used with your script it does not validate and also the busy image is shown when the popup loads itself.

Please post how you use it.

Thanks!

As in this link: http://docs.jquery.com/Plugins/Validation#source
include the jquerry validation script.

On my popup form I have class="ajax" as shown in your example and id="commentForm" as shown in the example on the above link.

<form id="commentForm" class="ajax" method="post" action="sendmail.php">

For a text input which has to be validated, I include class="required" as per example in the above link

<label for="fname">First Name</label> <div class="input"> <input name="fname" type="text" class="required" minlength="2"/> </div>

I have this within my head tag as shown in the example in the above link:

          $(document).ready(function(){
            $("#commentForm").validate();
          });
          </script>

This is causing the rotating busy icon to be seen on the popup & the validation actually doesn't work.

I am new to javascript & jquerry. I suspect your script & the jquerry validation script is clashing. Could you please tell me a way to perform validation using your framework?