1.11M Members

Jquery

 
0
 

Inline Code Example Herei have a page defalt.aspx
<body>
<div id="content"></div>
</body>

and i have genereated dynamic div through jquery reference to id "content"
like

#(document).ready(function(){
    var a=$("#content");
    $(a).append("<div class="scrollbar"><%--some content here-----%></div>")
   });

this above jquery work fine and seen in inside the "content" when i run the default.aspx

but i have make a another jquery funtion on another jquery file
where i have define the "scrollbar" funtion

the problem is that the jquery function "scrollbar" is not call in the "content".

any one who can solve the problem......................!

 
0
 

There's a couple of syntax errors in your code, try like this:

$(function(){
    var $a = $("#content");
    $a.append('<div class="scrollbar"><%--some content here-----%></div>')
});

And I'm assuming that yout scrollbar function uses the class scrollbar to add the functionality. But keep in mind that the function must be called after this append.

 
0
 

so many errors friends in this jquery

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article