Jquery variable assign with $ function ()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    Jquery variable assign with $ function ()

    to assign jquery function to variable which method best to describe with, ( likebox = div class )
    Code:
    <div class="likebox"></div>
    $(document).ready(function({$('.likebox').fblike();});
    can it be done taking value from function ? i.e
    Code:
    something like this or without assigning to html code?
    var x;
    this.x = $fblike() or
    this.x = $.ajax().fblike(); or
    this.x = $(this).fblike(); or
    this.x = $(this).attr('likebox').fblike();
    Last edited by Fary4u; Mar 21 '12, 01:47 PM. Reason: new code
  • Fary4u
    Contributor
    • Jul 2007
    • 273

    #2
    solution is $(document).fbl ike(); work for me :)

    Comment

    Working...