jquery - Assign IDs to elements (tables) in accordion sections -
i have page called list of items. iterate through list this:
<div id="accordion"> @for (int = 0; < model.count; i++) { <h3 id= '@model[i].userid' class="header">@model[i].username</h3> <div > @html.hiddenfor(x => model[i].userid, new { @id = "txtid" + }) <table style="font-size:xx-small">
my question - how assign id each table in each accordion group can manipulate later? i've tried this:
<table id="tbl" + '@model[i].userid' style="display:none", class="usertable">
but doesn't work. ideas?
try change
<table id="tbl" + @model[i].userid style="display:none" class="usertable">
Comments
Post a Comment