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 8740781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:11:29+00:00 2026-06-13T11:11:29+00:00

I have the following: $.fn.myFunction = (action) -> console.log hello! and when i call

  • 0

I have the following:

$.fn.myFunction = (action) ->
  console.log "hello!"

and when i call

$(".myDiv").myFunction()

it works fine in firefox, chrome, and safari but it fails in IE.

  • 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-13T11:11:30+00:00Added an answer on June 13, 2026 at 11:11 am

    Your jQuery selector is one that looks for an element with tag “myDiv”:

    <myDiv> There is no such element in standard HTML </myDiv>
    

    Internet explorer tends not to like that. Are you really “inventing” elements?

    Perhaps you meant to look for this:

    <div id='myDiv'> This is more like it. </div>
    

    In that case, your selector would be “#myDiv”:

    $('#myDiv').myFunction();
    

    Note that console doesn’t exist before (I think) IE8.

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

Sidebar

Related Questions

Suppose I have the following code function myFunction(param, callback) { ... if (err) {
Inside my template function I have the following code: TypeName myFunction() { TypeName result;
I have the following code function myFunction(items) { // this prints out 11 alert(items.length);
I have the following in php: public function myfunction($v){ //ini_set(memory_limit,32M); $v=mysqli_real_escape_string($this->connection,$v); $stmt=mysqli_prepare($this->connection,SELECT * from
I have following structure <div onClick=javascript:Myfunction('value');> <div title=Mytitle> </div> </div> Can I access in
Let's say I have following typed in my source file. var myFunction = function()
I have the following javascript in MSIE: setTimeout(myFunction, 1000, param ); this seems to
I have multiple chunks of code similar to the following: void GetPerson(Action<PersonView, Exception> callback);
I have the following code: myFunction('test') I wish to set this on the onclick
Consider I have the following function prototype: void MyFunction(int MyParameter); With the following definition:

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.