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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -