Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8297887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:34:03+00:00 2026-06-08T15:34:03+00:00

my code http://jsfiddle.net/4Ub95/ <!DOCTYPE html> <html> <head> <title>example</title> </head> <body> <script src=libs/jquery-1.7.2.js></script> <script> $(function(){

  • 0

my code http://jsfiddle.net/4Ub95/

<!DOCTYPE html>
  <html>
  <head>
      <title>example</title>
  </head>
  <body>
  <script src="libs/jquery-1.7.2.js"></script>
  <script>


  $(function(){

  var getid = function(){
      // 
      // I want this is $("#test") obj
      // jQuery.proxy used for?
      var id =  $(this).attr('data-id');
      alert(id);
   }

  $("#test").click(function(){
    //not worki
    //show undefined 
    $.proxy(this.funa,this)()
  })


  })
  </script>

  <button id="test" data-id="123">Click</button>
  </body>
  </html>

I want this is $(“#test”)
want get attr data-id use proxy..
but the code not work
how to use proxy method for event…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:34:05+00:00Added an answer on June 8, 2026 at 3:34 pm

    You typed the wrong function name,

     $.proxy(getid,this)()
    

    http://jsfiddle.net/4Ub95/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code: http://jsfiddle.net/tRRtY/ <!DOCTYPE HTML> <html> <head> <title>$$ float</title> <script type=text/javascript src=http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default> </script> <style type=text/css>
Code: http://jsfiddle.net/JhcYu/ <!DOCTYPE HTML> <html lang=en-US> <head> <meta charset=UTF-8> <title></title> <link type=text/css href=css/smoothness/jquery-ui-1.8.16.custom.css rel=stylesheet
I have this code: http://jsfiddle.net/Q4PUw/2/ Hence, a simple HIDDEN TO VISIBLE jQuery Script. What
I have the following code: http://jsfiddle.net/fCWJ5/1/ , and following doubts regarding the viewbox. body{margin:0;}
jsFiddle Full Code: http://jsfiddle.net/bvmdW/ I used jQuery Embedly to replace YouTube links with thumbnail
not sure what is wrong with this jquery code: http://jsfiddle.net/aCABM/ I want to to
Example code: http://jsfiddle.net/slolife/PnmxM/ I am asking this even though there are a number of
I have the following code: http://jsfiddle.net/cosoroaba/nCEwv/ HTML: <div id=square> <div class=corner-wrapper> <div id=ctr></div> </div>
I have the following code: http://jsfiddle.net/YfzbZ/ HTML <dl class=dropdown right> <dt><a>Options</a></dt> <dd> <ul style=display:none;>
Code: http://jsfiddle.net/n3mcH/ I use http://www.cssstickyfooter.com/using-sticky-footer-code.html . The footer is attached to the bottom, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.