I'm new to jQuery, can anyone explain what this code does:
$("#currency form").submit(function(e) { triggers.eq(1).overlay().close(); return e.preventDefault(); });
The first line starts the function that processes the event of submitall tags formin the element with the identifier currency.Documentation: Selectors , submitEvent
submit
form
currency
The second line closes the overlay in the second element in the variable triggers.Documentation: eqmethod , overlay plugin
triggers
eq
, . ( e.preventDefault(); / return false;): event.preventDefault,
e.preventDefault();
return false;
event.preventDefault
triggers= jQuery
triggers.eq(1)= jquery
triggers.eq(1)
triggers.eq(1).overlay()= overlay ()
triggers.eq(1).overlay()
triggers.eq(1).overlay().close()= .
triggers.eq(1).overlay().close()
return e.preventDefault(); = ( )
return e.preventDefault()
:
Source: https://habr.com/ru/post/1734908/More articles:Google App Engine Authentication - authenticationRuby global variables - reflectionCannot Connect Visual Studio 2008 to TFS 2010 - tfsIs there a way to prepare a sql statement in Java without using a Connection object? - javaCan a Java class be aware of its instance? - javaDo I need a release at dealloc? - objective-cCheck what will be done before actual execution - version-controlColor picker image created by .NET? - .netPostgresql: разделение базы данных между разными машинами - postgresqlSwitching Byref in Byval to VB.NET method calls - vb.netAll Articles