hashchange problem: loading javascript
I have two pages and I am using hashchange on one of the divs
here is my problem I have a button inside the div that replaces the div on current page. I have used some event handling on my buttons using jquery, but af开发者_如何学运维ter hashchange they look like normal buttons the javascript doesnot get applied to those buttons, how could I solve this problem?
any efforts appreciated thanks
From the comment i undestand that the real issue is with the event handling (on-rollover) and not the styling..
For that you can use the .live()
or .delegate()
methods.
example
$('buttonselector').live('mousenter', function(){
// do the fadein here
}).live('mouseleave',function(){
// do the fadeout here
});
精彩评论