SOLVED: JavaScript error .reset is not a function

Posted by: Run Tings Proper, on 27 Jun 2011 | View original | Bookmarked: 0 time(s)

Read this article if you are trying to call reset() on a <form> DOM element but you're getting an error stating .reset is not a function. PROBLEM I was working on some jquery UI code and I wanted to reset the form when the dialog was closed. I found a simple snippet explaining how to do this: $(this).find("form")[0].reset(); If you arent familiar with this notation the [0] gets the underlying DOM object rather than the jQuery object reset() is a built in JavaScript feature. Other...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: JavaScript | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 409 | Hits: 7

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD