You can't put {{ row.sku }} out of id. Try this:
<button id="opener">open the dialog</button>
<div id="dialog{{ row.sku }}" title="Product Description">
This is a test
</div>
<script>
$( "#dialog{{ row.sku }}" ).dialog({ autoOpen: false });
$( "#opener" ).click(function() {
$( "#dialog{{ row.sku }}" ).dialog( "open" );
});
</script>
2013/2/14 frocco <[email protected]>
> <button id="opener">open the dialog</button>
> <div id="dialog"{{ row.sku }} title="Product Description">
> This is a test
> </div>
> <script>
> $( "#dialog"{{ row.sku }} ).dialog({ autoOpen: false
> });
> $( "#opener" ).click(function() {
> $( "#dialog"{{ row.sku }} ).dialog( "open" );
> });
> </script>
>
Felipe 'chronos' Prenholato.
Linux User nÂș 405489
Home page: http://devwithpassion.com | http://chronosbox.org/blog
GitHub: http://github.com/chronossc/ | Twitter: http://twitter.com/chronossc
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.