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
Post a Comment