Jquery inline attribute value
<p><strong>Can i get some suggestions. Do you have better way to do this?</strong></p>

<p>Most of the time when i got a group of data input in Html table, I always level data like
some reference id like "student_id", or "country_id" to parent structure like  or  , </p>

<p>for example</p>

<pre><code>&lt;tr student_id="1" subject_id="2" school_id="5" country_id="6"&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
  .....
  ......
&lt;/tr&gt;
....
.....

&lt;tr student_id="43" subject_id="35" school_id="22" country_id="411"&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
 &lt;td&gt;&lt;/td&gt;
  .....
  ......
&lt;/tr&gt;
....
.....
</code></pre>

<p>when i call javascript function i can get  and get those id in function</p>

<pre><code>var tr  = $(this).closest('tr');
var student_id =  $(this).attr('student_id');
var subject_id =  $(this).attr('subject_id');
var school_id =  $(this).attr('school_id');
.......
</code></pre>

<p>Do you got better way to store these kind of reference ? Thanks.</p>
