I have two divs that are being placed in the DOM after page load, with jquery. To show me another element, is there a hard time to force a div function any sign?
jQuery ('# create-account-btn'). Live ('click', function () {jQuery ('# create-account'). Show (); jQuery (this) .hide ();}); create now-
Working demo < / Strong> Jquery .on Event Read more here, but only v 1.7: .live here: If you Curious:
If you become more curious then see: Why
You have been taken liberty to write small HTML and demos for you.
Hope that : Also note: You can:
$ (document) .on ('click', '# create-count-btn', function () {}); Code $ ('.hulk'). Hide (); $ ('# Create-account-btn') ('Click', function () {$ ('.hulk'). Hide (); $ ('# create-account') Show ();}); $ ('#foo') ('Click', function () {$ ('.hulk'). Hide ($); $ ('# - whatever'). Show ();}); html & lt; Div class = "hulk" id = "create-whatever" & gt; Hulk is more likely to & lt; / Div & gt; & Lt; Div class = "hulk" id = "create-account" & gt; Ironman Yada Yada Krau Exton Show & lt; / Div & gt; & Lt; Input type = "button" id = "create-account-btn" value = "click me" /> & Lt; Input type = "button" id = "foo" value = "Click to show me another" />
Comments
Post a Comment