javascript for link to id in html code example
Example 1: To set HTML attribute and css styles in html helper control in mvc
@Html.ActionLink(emp.Name, "EmployeeDetail", new { Id = emp.Id },
new { target="_blank",
style="font-weight: bold;color: red;"})
Example 2: referance html id css
<style>
#test {
/*Styleing here*/
}
</style>
<h1 id="test"></h1>
Example 3: name class and id referance in ajax
$('td[name ="tcol1"]') // matches exactly 'tcol1'
$('td[name^="tcol"]' ) // matches those that begin with 'tcol'
$('td[name$="tcol"]' ) // matches those that end with 'tcol'
$('td[name*="tcol"]' ) // matches those that contain 'tcol'