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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:41:42+00:00 2026-06-14T12:41:42+00:00

I use JQUERY but have the need to use a piece of JavaScript in

  • 0

I use JQUERY but have the need to use a piece of JavaScript in the specific case. The problem I’m having is being able to reference the specific object I want in Javascript.

In JQUERY I would state $('div#uniqueID div.genericClass') – FYI there are many of the uniqueID divs and each has the genericClass below.

This the Javascript I’m trying to use (there is more code but its not specifically important in this case:

 function insertEmoticonAtTextareaCursor(uniqueID,text) {
     var txtarea = document.getElementById(uniqueID);
 }

I’m calling this code from JQUERY using:

 insertEmoticonAtTextareaCursor(uniqueID,emoticonSymbol)

The object I need to access is

 $('div#uniqueID div.genericClass')

How can I get the ‘txtarea’ variable to be linked to $('div#uniqueID div.genericClass')?

thankyou

  • 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-14T12:41:43+00:00Added an answer on June 14, 2026 at 12:41 pm

    Try this:

    function insertEmoticonAtTextareaCursor(uniqueID,text) {
         var txtarea = $("#"+uniqueID).find('div.genericClass');
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following line of jQuery but it seems like overkill to use
I'm trying to use $(button).button(); but jquery-ui-1.8.16.custom.min.js used by SlickGrid doesn't have the button
I have to use mootools and jquery files together. But there is a conflict
I have a page that requires jQuery.tmpl, but I want to use native knockout
So I have some javascript class and in one method I use jQuery to
I'm trying to use jQuery-jsonp plugin with jQuery Deferred Objects but I'm having no
Ok, this is a weird request, but I need to use jQuery to manipulate
I am somewhat new to jQuery but have been having fun trying learn about
I already started this in javascript so I don't want to use jquery but
i try to use jquery .text() but not really work : Before <a id=group_name

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.