Tagged Questions
31
votes
11answers
32k views
jQuery UI Dialog validation without using <form> tags
http://bassistance.de/jquery-plugins/jquery-plugin-validation/ looks to be the best jquery validation plugin out there. I can't seem to get it working in the jQuery UI dialog though.
This code works ...
26
votes
7answers
12k views
Unobtrusive validation in Chrome won't validate with dd/mm/yyyy
I'm trying to use the simplest possible scenario using a date picker in different browsers. I suspect I'm doing something very simple the wrong way but after lots of searching around I still haven't ...
13
votes
4answers
7k views
Add autoFill capabilities to jQuery-UI 1.8.1
here's what I currently have, unfortunately I cannot seem to figure out how to get autoFill to work with jQuery-UI... It used to work with the straight up Autocomplete.js
<script ...
7
votes
1answer
9k views
jQuery Validate on Tab change
I am working with jQuery Validate and Tabs plugins. I wish to validate a particular tab when the user attempts to move away from the tab to one of the other 2 tabs. Does anyone have experience with ...
5
votes
5answers
13k views
jQuery UI Dialog with Form Validation Plugin
I am currently using the bassistance validation plugin for my forms. And I am using a pop-up modal dialog box to house a form that needs to be validated, but for some reason it isn't calling my ...
5
votes
2answers
9k views
jQuery UI Datepicker: manual date entry validation
I have jQuery datepicker on a page that needs to allow manual entry of the date, but also needs to validate that the date is no more than one day ahead. The picker control has been limited via the ...
4
votes
1answer
6k views
jquery datepicker and custom validation
I need to add custom validation(I think) for validating input from an user. Here's my use case:
I'm using the jquery ui datepicker for selecting dates, with localization like this:
...
4
votes
5answers
6k views
How to validate jQuery UI combobox values with jQuery Validation Plugin?
I've added jQuery UI combobox with remote source to my form. Now, I am trying to validate that with jQuery Validation Plugin (only values from the list are allowed, field is mandatory).
I've tried ...
4
votes
1answer
3k views
jQuery UI 1.10.3 Dialog Box, dragging moves away dialog box
I am using jQuery 1.10.1 with migrate, jQueryUI 1.10.3, jQueryValidate 1.11.1.
Just using a simple form, it has two fields. On submit if values are not provided then a dialog box is displayed with ...
3
votes
2answers
5k views
Passing a self object in jquery
In the below code how to pass the div object inside validate function
<div><input type="text"></input>   <a href="#" onclick="validate("Hot ...
3
votes
1answer
1k views
jQuery UI Select in combination with the Validation Plugin
I want to validate my selectboxes but because i use jQuery UI to style my selectboxes it is not working.
Jquery UI is set the real selectbox on display : none so that is why it not work see:
But ...
3
votes
1answer
382 views
Custom Validation for Jquery UI Selectable
I have the following code that makes the
for(somecollection){
<ol id="someId@(index)" class="selectableList">
<li value="1">1</li>
<li ...
3
votes
1answer
1k views
JQuery UI Dialog + JQuery Validate + Tabbing
I have a jquery ui dialog with a form inside. If I call the validate method of the jquery.validate plugin, tabbing inside the form fields strangely submits the form.
If I remove the call to validate, ...
3
votes
2answers
665 views
jquery change & validation
We have a jquery autocomplete input box:
<input name="suburb" id="suburb-agency" autocomplete="off" class="text" type="text" value="">
This drops down, and when they choose an option, another ...
2
votes
5answers
172 views
How to do maths in if and else in jquery?
Hello guys!
I have been trying to create a if/else statement code in jQuery but I guess my if/else statement is resting in peace! I don't know what is getting wrong I have did everything and still it ...
2
votes
1answer
7k views
jQuery Validation Callback Function
I currently have a form within a lightbox frame on my webpage. When a user submits the form with invalid data, a div appears with a list of form errors at the top of the form. The problem is: I need ...
2
votes
1answer
2k views
Client side validation not working with ASP.Net MVC Razor and Ajax form
I am displaying a partial view inside a JQuery UI dialog. The partial view contains fields that include Html.ValidationMessageFor entries and the form itself has a Html.ValidationSummary. I can't ...
2
votes
3answers
5k views
jquery-1.5.1.min.js and IE8
IE8 gives an error from jquery 1.5.1 minimized: Invalid argument, but firefox doesn't.
The error comes from this line:w
...
2
votes
2answers
3k views
How can I trigger validation to occur on jQuery UI datepicker once a date has been selected?
I have some client-side validation that checks to ensure that the EndDate is greater than or equal to StartDate. The validation works, but it's not firing as I would like it to. I would like it to ...
2
votes
2answers
245 views
Jquery validate function
I have a form that is broken down into three different categories: Information, Violations, and Important dates. I need to perform form validation in the information, and Important dates ...
2
votes
1answer
946 views
Is it possible to use jQueryFormWizard with UI Tabs? or any other solution for wizard with tabs and validation
I have a form wizard and trying to achieve tabs for steps and multi-part validation on each step. Some one suggested me to use jQuery Form Wizard. Can any one guide me how to achieve both wizard with ...
2
votes
2answers
188 views
jQuery validation help
//in here i want to insert only numbers.how can i do that?
function validate_proprty_price()
{
if($("#proprty_price").val() == '')
{
proprty_price.addClass("error");
...
2
votes
1answer
292 views
jQuery checkbox undo solution
<table>
<tr>
<td>
<div>
<input type="checkbox" id="home1">Home1</input>
<input type="checkbox" id="home2">Home3</input>
...
2
votes
1answer
595 views
ASP.NET MVC: jQuery UI Selectable Form Posting and Validation
I have a list of items that I display to a user and allow them to select one or more of them by utilizing the jQuery UI Selectable interaction. In order to post the selected values back to the ...
2
votes
1answer
684 views
jQuery Tabs and validation aren't working together
I'm using jQuery UI tabs and the validation plugin together. I'm validating on the click event of a span acting as a pseudo button. I've only added the validation classes to the form elements visible ...
1
vote
3answers
6k views
jquery validate add method to validate datetime
I'm using a datetimepicker plugin that I found here which works quite well.
The only problem now is that it breaks the standard date validation included with the jquery validation plugin because of ...
1
vote
1answer
3k views
jQuery Validation error
I have been struggling with this jQuery Validation Plugin.
Here is the code:
<script type="text/javascript">
$(function() {
var validator = $('#signup').validate({
errorElement: ...
1
vote
3answers
2k views
MVC.NET custom validator is not working
I want to write a custom validator for MVC.NET framework that checks if entered date is in the future. To do it, I wrote the following class:
[AttributeUsage(AttributeTargets.Property, AllowMultiple ...
1
vote
2answers
964 views
jQuery Validate's remote method inside a jQuery UI Dialog only works once
I need to use the 'remote' method to check the availability of a company name before proceeding to insert the said company
I'm currently using jquery UI Dialog for entry of the company's data , ...
1
vote
3answers
62 views
Question regarding ready function
My page content.html is called from another page.My question is that there are only AJAx calls made in our page.So in my page i notice that ready function is not called every time.I have to clear my ...
1
vote
2answers
1k views
jquery validation should allow alphabets
Can anyone please tell me jquery validation, that should validate only alphabets, i.e)
abcde - valid
12344 - not valid
ancd12 - not valid
asng$e - not valid etc
this code will not work for above ...
1
vote
2answers
3k views
jQuery Validation - How to use for steps in a wizard like form?
I want to use jQuery Validation Plugin with jQuery UI Tabs. How I can validate using jQuery Validation Plugin on each step triggered by next button. I see examples of jQuery Validation Plugin and ...
1
vote
1answer
2k views
Any working example of jQuery UI tabs with the validation plugin? [closed]
Does anyone know if there's working example of the tabs with the validation plugin?
I've been reading the documentation for both but can't wrap my head around how to use them together.
Need to ...
1
vote
1answer
584 views
How to validate a form in a Jquery UI Dialog?
I'm trying to make a function to activate a 'form' for a 'field'.
function validacion_coment(form){
$("#"+form).validate({
rules: {
texto: ...
1
vote
1answer
189 views
checkbox properties using jquery
<input type="checkbox" id="var1" name="s_k" >
<input type="checkbox" id="var2" name="s_k">
<input type="checkbox" id="var3" name="s_k">
At some point the checkbox id=var1 is ...
1
vote
1answer
337 views
Jquery plugin tools for maps
Can anyone suggest a link or an example to create an atlas like tool using jquery
What does google maps use?
Thanks..
1
vote
1answer
3k views
jQuery UI Tooltip with jQuery Validate plugin
I'm trying to use jQuery Tooltip to display a different colour tooltip for errors. I can do this fine with static content using the tooltipClass and styling that class appropriately.
...
1
vote
1answer
1k views
jQuery UI validation plugin adds class 'valid' to elements
I am using jquery ui validation plugin. I am validating only few fields(input elements) but when form is validated class 'valid' is being added to other input elements(in jqgrid) that I am not ...
1
vote
1answer
96 views
Stack overflow when close jquery modal window
I use jquery.validation v 1.6 with jquery 1.5.1 and jquery-ui 1.8.24 when I create jquery modal dialog and then try to close it throw exception:
Uncaught RangeError: Maximum call stack size ...
1
vote
1answer
206 views
Create a layered panel when validation fails
I would like to create a layer with the validation errors and show it like a tooltip side by side with my form. Something like the following sample:
+-------------+
| |
| | ...
1
vote
1answer
112 views
How to select jquery tabs if errorLable display
im up to apply jquery UI tabs to my application and im going to apply jquery validation class on that. my problem is if i got error in some div that div should selected and display the error to user ...
1
vote
1answer
2k views
asp.net mvc 3 unobtrusive client side validation not working in ie
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel="stylesheet" type="text/css" />
<script ...
1
vote
1answer
965 views
jQuery validator - Different error messages for same control
In my MVC validation I am using a calendar control and all validations work fine.
var today = $('#TodayDateHf').val();
$('#myform').validate({
errorPlacement: ...
1
vote
2answers
1k views
Jquery validation with zip codes
I have a program that allows a user to enter a zip code to generate a google map. I want to make sure that the zip code is valid. To do so I am using the jquery validate method. Here is how my code ...
1
vote
2answers
40 views
Reinsert position of the div
On some javascript condition, How to remove mynavbar and insert into main_table div
<div id="mynavbar" > <div>Some content</div> </div>
<div id="main_table"> ...
1
vote
1answer
350 views
Jquery ui tab-wise validation
I am using UI tabs and i want to validate each tab.
When I click the second tab i must validate the first tab.If tab is valid go to second tab, if tab is not valid stay to the current tab and fill in ...
1
vote
3answers
3k views
jquery mouseover/mouseout
In the following code once the mouse out is done the mouse over again does not work ,what is the work around for this
<!DOCTYPE html>
<html>
<head>
<style>
/* div { ...
1
vote
1answer
1k views
Combining the jquery Calendar picker with the jquery validation and getting them to play nice?
I'm just starting to get into jquery/javascript programming so this may be a beginner question but I sure can't seem to find anything about it.
I have a text field on a form. I've used the JQuery UI ...
1
vote
1answer
412 views
jQuery BeautyTips is stacking bubbles together when referenced elements aren't in the view port
We're using BeautyTips as a the mechanism for creating various kinds of bubbles for communicating with the user. For example, we have a help icon that shows a bubble with more information. We also use ...
1
vote
1answer
1k views
Properly using jQuery dialog with partial view, validation and navigation
I am working on an ASP.NET MVC 2 application and am struggling to get the desired behavior from a dialog window in one of my pages. Think of it as something like the "Add New Item" window in Visual ...