jquery-bootstrap-scripting icon indicating copy to clipboard operation
jquery-bootstrap-scripting copied to clipboard

Not working together with jquerry validation

Open bharatkrishna opened this issue 12 years ago • 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.

bharatkrishna avatar Jun 13 '12 00:06 bharatkrishna

Please post how you use it.

Thanks!

nikku avatar Jun 14 '12 09:06 nikku

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?

bharatkrishna avatar Jun 14 '12 16:06 bharatkrishna