javascript - How to get the sheet object in the sheet properties? -


this question has answer here:

how form object?

i use this.box meaning sheet.box here, script produces error. how sheet object in sheet properties?

<div class="box">     <form action=""></form> </div>  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript">     var sheet={         box: $('.box'),         form: this.box.find('form') // typeerror: this.box undefined     } </script> 

i guess need function:

form: function() {return this.box.find('form');} 

otherwise, should more specific.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -