Question: I'm using MVC3 and I have a model like this:

```
public class Foo
{
 [Required]
 [Range(0.01, 99.99)]       
 public double? f1{ get; set; }
}

```

And I want to ugnore javascript range validation, but keep the required javascript validation.
How can I do that?

Answer: 
I found solution, just removed some attributes from textbox:

```
$('#fieldId').removeAttr("data-val-range");
$('#fieldId').removeAttr("data-val-range-min");
$('#fieldId').removeAttr("data-val-range-max"); 

```
if you dont want the range validation then simply remove it

```
public class Foo
{
 [Required(ErrorMessage="This field is required")]      
 public double? f1{ get; set; }
}

```

---

update:
-------

to remove all validations on an input you can do 

```
$("#f1").rules("remove");

```

for removing the range validation probably the following would work

```
$("#f1").rules("remove", "min max");

```

---

P.S this may not be the best practice...