CODE SNIPPETS

CODESNIPPETS FOR .NET, SQL, JAVASCRIPT, JQUERY and more

  1. even

even

How to check if a number is even in javascript

 Administrator
 June 15, 2014
4 Comments

To check if a number is even in javascript you can use the following snippet.

Sample Javascript

function NumberIsEven(input) {
	if (input % 2 == 0)
		return true;
	else
		return false;
}

  Posted in Javascript
  Tagged check, even, is, javascript, js, odd
  Permalink

How to create zebra table effect with jQuery and CSS

 Administrator
 June 14, 2014
2 Comments

To create zebra table effect with jQuery and CSS you can use the following snippet.

jQuery

$("tr:odd").addClass("oddRowsEffect");

in the css you need something like

tr.oddRowsEffect{
/* background: choose a color; *
/* color: choose a color; *
}

  Posted in CSS, jQuery
  Tagged color, colorize, css, even, html, javascript, jQuery, js, odd, row, tables, tr, uneven, zebra
  Permalink

Search


Search for:

Navigation


  • Menu
    • DISCLAIMER / HAFTUNGSAUSSCHLUSS
    • IMPRINT / IMPRESSUM
    • PRIVACY POLICY / DATENSCHUTZ
    • Submit a Snippet
  • Projects
    • Fesslersoft.Extensions
    • Tornadocapture
  • Tools
    • Base64 Encoder/Decoder
    • Colorpicker
    • MD5 Hash Creator
    • UUID/GUID Generator
    • XML Formatter
Subscribe via RSS

Meta


  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories


  • .NET
  • Android
  • AngularJs
  • Announcements
  • Batch
  • C
  • C#
  • C-PlusPlus
  • CSS
  • Devexpress
  • HTML / HTTP / WEB
  • ios
  • Java
  • Javascript
  • jQuery
  • Microsoft SQL Server
  • Mobile
  • Most Read Articles
  • MySql
  • NuGet
  • Objective-C
  • Oracle
  • PHP
  • Powershell
  • Python
  • Regex
  • Ruby
  • SQLite
  • VB.Net
  • VB6
  • VBA
  • VBScript
  • Wordpress
  • XML
  • XSD
  • XSL

Popular Posts


The 10 most visited posts in last 30 days:
  • How to remove unicode characters from a string in C# and VB.NET
  • How to get the current path using VBScript
  • How to refresh the current Android Fragment
  • How to convert Stream to ByteArray in C# and VB.NET
  • How to remove columns from DataTable in C# and VB.NET
  • How to remove class after delay in jQuery
  • How to get the Temp folder in VBA
  • How to sort a collection in VBA
  • How to change the time in a DateTime in c# or VB.NET
  • How to make a multicolumn listbox in C# and VB.NET

Recent Posts


  • How to get the current path using VBScript
  • How to disable all links using jQuery
  • How to remove class after delay in jQuery
  • How to check if a value is a double value in Android (Java)
  • How to refresh the current Android Fragment

Recent Comments


  • CodeSnippetBlog on How to get the current path using VBScript
  • AllCodeSnippets on How to get the current path using VBScript
  • Realliferulor on How to get the current path using VBScript
  • Manav6677 on How to disable all links using jQuery
  • javascriptd on How to disable all links using jQuery

Archives


  • August 2016
  • June 2016
  • December 2015
  • November 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • November 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
Back to top

Most used Tags


.net all array C# char character characters chars check convert csharp css Directory Extension file files folder get html IO is Java javascript jQuery js list net php Python query remove retrieve select SQL String Strings System to vb.net Visual Studio 2005 Visual Studio 2008 Visual Studio 2010 Visual Studio 2012 Visual Studio 2013 XML

Copyright © 2021 CODE SNIPPETS. Powered by WordPress and Alétheia.