Platinum Partner

Grid like Board using JQuery

For weekend freinds gathering, I wrote this code to generate various board games like tambola, scrabble etc. 


Following Jquery function 
alternateColorCellBoard(numOfRows, numOfColumns, parameter, color1, color2, cellHeight, cellWidth )
  takes seven parameter numOfRows, numOfColumns, parameter, color1, color2.
The function call be like:
  var myArr = [ "hello1", "hello2", "hello3", "hello4","hello5", "hello6","hello7", "hello8","hello9"];
  $(document).ready(function() {
           $('#chequeredBoard').alternateColorCellBoard(3,3,myArr,"biege","aero",50,50);
  });
  where,
#chequeredBoard is the div id and is written as <div id="exArr"></div>
  the function will create a 3 by 3 matrix with the data in the array in it.

JQuery::






The HTML ::


{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}