Question: My pages have 6 grids called grid1,grid2,grid3,grid4,grid5,grid6.When I click the search button,I read the data in grids.now I want to style the grid1,grid2,grid4,grid5 with style `"color:red"`,I can style them using these codes:

```
   #grid1.k-grid-content td {
   color:red 
   } 
   #grid2.k-grid-content td {
   color:red 
   } 
   #grid4.k-grid-content td {
   color:red 
   } 
   #grid5.k-grid-content td {
   color:red 
   } 

```

I think this way is really complicated and redundant and change the codes like this and click the search button,but failed.But if I firstly seach data,and then execute the change code,it successed.How to change my code?I just do not want to write complicated and redundant codes.Can it be used with jquery "live" event?Anybody use "live" to style the grid td? 

```
   .GridColor {
   color:red 
   } 
     $(function () {
    $("#grid1.k-grid-content  td").addClass("GridColor");
    $("#grid2.k-grid-content  td").addClass("GridColor");
    $("#grid4.k-grid-content  td").addClass("GridColor");
    $("#grid5.k-grid-content  td").addClass("GridColor");
     }

```

Answer: 
Unfortunately, the microdata attributes are only defined for HTML elements, which means they won't be processed in SVG. I would recommend to look at RDFa which is designed to work in many formats such as HTML, XML and SVG: 

* <http://www.w3.org/TR/rdfa-lite/>
* <http://www.w3.org/TR/rdfa-primer/>
I would recommend one of two methods. 

Both involve having a legend or similar reference to the SVG map in HTML5. Then use the Microdata for the legend. Make sure to reference the SVG within the page by:

* Using the id attribute in the SVG so that the HTML Microdata can have a link using the itemprop attribute to the URL fragment, `#svgobject1`
* Less likely to be used, but interestingly allowed possible is to use the itemref attribute in HTML legend. I would avoid this as it is messy.

Another approach to take in addition to the above is to use the itemid attribute. I would recommend this for any Microdata item if possible. Decide if the SVG map legend is the original authentic collection of items. If so, then the include id attributes in each of the HTML tags with itemscope and then add itemid with the URL with fragment being itself (example:

```
<div id="itemid" itemscope="" itemid="http://maps.cn/beijing.html#itemid">

```

)

Or create or reference another web page(s) of yours or someone else's, preferably with the Microdata item in it and a decent itemtype reference.