Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

html - If I have 3 <tr> elements, how do I only allow one to be highlighted when clicked at any one time? - CSS, jQuery -


might bit difficult understand based on description jsfiddle here: http://jsfiddle.net/n8a76/4/

basically want do, when click on of elements in first 3 boxes, want 1 element highlighted @ time. if click on 2 or 3 elements (names, projects, etc) right now, highlights 2 or three. unhighlights element when click again.

so see, click element 1, element 1 highlighted. click element 2, element 1 (in same box) unhighlighted, , element 2 highlighted.

so each box, code called dashed-panel, should independent of other.

so in theory, john brown , jack's app ui highlighted @ same time.

anyone have suggestions?

you can remove class th sibling <tr> elements in same table, this:

$(document).ready(function() {   $('#clients table tr, #stages table tr, #projects table tr').click(function() {     $(this).toggleclass('dash-elem-selected').siblings().removeclass('dash-elem-selected');   });     }); 

you can test out here, still allows toggling on/off well.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -