Function not recognized from jQuery
Posted
by coffeeaddict
on Stack Overflow
See other posts from Stack Overflow
or by coffeeaddict
Published on 2010-04-13T17:26:10Z
Indexed on
2010/04/13
17:33 UTC
Read the original article
Hit count: 238
jQuery
I've got a .js file that has this function in it:
function showDialog(divID)
{
var dialogDiv = $(divID);
dialogDiv.dialog
(
{
bgiframe: true,
modal: true,
autoOpen: false,
show: 'blind'
}
)
And in my page this:
<script type="text/javascript">
$(function()
{
$("input.invokeDialog").click.showDialog("#testDialog");
});
</script>
I'm trying to figure out why it doesn't recognize my showDialog function. Is it not possible to reference it with the dot as I am doing? Do I need a jQuery specific function or syntax for it to know that it's a jQuery function or is there no such thing?
© Stack Overflow or respective owner