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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:45:25+00:00 2026-06-18T08:45:25+00:00

i am using this tooltip popover from here .. what i want is to

  • 0

i am using this tooltip popover from here .. what i want is to display data in this tooltip after getting the data from controller .. i dont know how can i do this .. i have a textbox where i have applied a blur function so if user enter something in inputbox it displays the data against it in tooltip .. i dont know how can i used this tooltip in my script

my textbox in view page

        Bill No:<?php echo form_input($bill_no); ?>
   <input type="hidden" class="hiddenUrl">

in this span i want to display the tooltip just infront or above the inputbox

     <span class="text">  </span>

my javascript

<script type="text/javascript">


    $(document).ready(function(){

        $('#bill_no').blur(function(){

            if( $('#bill_no').val().length >= 3 )
                {
                  var bill_no = $('#bill_no').val();
                  getResult(bill_no); 
                }
            return false;
        })
        function getResult(billno){
            var baseurl = $('.hiddenUrl').val();
          //  $('.checkUser').addClass('preloader');
            $.ajax({
                url : baseurl + 'returnFromCustomer_Controller/checkBillNo/' +     billno,
                cache : false,
                dataType: 'json',
                success : function(response){
                     $(".text").html(response.result);
                }
            })
        }
    })


  </script>

mycontroller…

       function checkBillNo($billno)
  {
$this->load->model('returnModel');

$query = $this->returnModel->checkBillNo($billno);

$billno =   $this->uri->segment(3);
$billno_results  = $this->returnModel->sale($billno);

//header('Content-Type: application/x-json; charset=utf-8');
echo    json_encode($billno_results);

}

  • 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-18T08:45:26+00:00Added an answer on June 18, 2026 at 8:45 am

    You have to insert the returned text into the data-content attribute:

        function getResult(billno){
            var baseurl = $('.hiddenUrl').val();
            //$('.checkUser').addClass('preloader');
            $.ajax({
                url : baseurl + 'returnFromCustomer_Controller/checkBillNo/' +     billno,
                cache : false,
                dataType: 'json',
                success : function(response){
                     $("#bill_no").attr("data-content", response.result);
                }
            })
        }
    

    or

    $('#bill_no').popover({html: response.text})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this tooltip from jquerytools: $(li img).tooltip({ position: bottom right}); and want to
Using Rails 3.2 and Twitter Bootstrap bootstrap-popover.js and bootstrap-tooltip.js here This is what I'd
I'm using this tooltip plugin: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ Is there any way I can make the
I am using this value for to display it in tooltip . return 'Date
I have been using Twitter's Bootstrap Tooltip plugin . This works perfectly fine except
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using this tutorial: http://www.c-sharpcorner.com/uploadfile/UrmimalaPal/creating-a-windows-phone-7-application-consuming-data-using-a-wcf-service/ I have created sample/hello world application on the windows phone
I am using this jQuery Tooltip plugin . I am trying to emulate the
I am using this plugin for tooltip. It uses title attribute as tooltip text
I'm using the gwt UlTabBar (com.google.gwt.user.client.ui.UlTabBar). When mouse over this tabbar, a small tooltip

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.