Tuesday, July 31, 2012

javascript change div html when click span



Ok I have a small question.


I have the following



<div><span class=\"spanright\" onclick\"\">Update</span><label class=\"myinfo\"><b>Business information:</b></label></div>


What I want to do is when the user clicks on the span it changes the html after the label an adds an input box and submit button.


I think I need to do a this.document but not sure






Rating: 3 out of 5 based on 5 ratings



The post javascript change div html when click span appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/javascript-change-div-html-when-click-span.html

No comments:

Post a Comment