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 - How do I get one element to respond to the click of another element? - CSS/jQuery -


the question simple, in implementation has gone awry.

you can see implementation here.

so want happen is, when click on 1 of names in box #1, dotted line , #1 in dotted circle both turn black , solid. dotted line not border. same should happen when click other data in other corresponding boxes.

the main issue facing when use .css function in jquery manually change color , border, works nicely. however, modify toggle class (because couldn't toggle() work css function) - when click once, see element clicked highlighted (with 1px border - functionality there), , corresponding number box (and dotted line) turned solid black.

thanks.

it looks javascript fine. thing see messing things line:

$('#bc1 dashed-circle').toggleclass('bc-dashed-to-solid-circle'); 

you'll want change selector #bc1 .dashed-circle.

the reason dashes , number aren't changing color because of specificity. declare normal color (#bdbebf) selector #blank-dashboard-breadcrumb span -- id , element. declare "selected" color (black) .bc-dotted-to-solid or .bc-dashed-to-solid-circle -- simple classes. when dash , 1 have appropriate classes, still have more specific selector telling them remain gray.


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 -