Access nested ListView textbox
Will someone show me how to access a TextBox inside of nested asp.net ListView control? Here's my code:
- <script type="text/javascript">
- $(document).ready(function () {
- var jObject = $('.expanding');
- if (jObject.length) {
- jObject.focus(function () {
- $(this).animate({ width: 100 }, 500);
- alert("got here");
- });
- jObject.focusOut(function () {
- $(this).animate({ width: 20 }, 500);
- alert("second");
- });
- }
- });
- $(function () {
- $("textarea[id$=txtInsertDefinition]").blur(function () {
- //$("#commands").hide()
- $(this).next().hide("normal");
- alert("got in first");
- });
- $("textarea[id$=txtInsertDefinition]").focus(function () {
- $(this).next().show("normal");
- //$("#commands").next().show("normal");
- alert("got in second");
- });
- });
- </script>
Right now, I didn't even get the alert message. So, there is something definitely wrong here.