+ Reply to Thread
Results 1 to 1 of 1

Thread: Help required about Drop Down Jquery

  1. #1
    moneynetworkgroup39's Avatar
    moneynetworkgroup39 is offline x10Hosting Member moneynetworkgroup39 is an unknown quantity at this point
    Join Date
    Aug 2010
    Location
    In my dreams
    Posts
    90

    Help required about Drop Down Jquery

    I am at the last point of finishing my chart script and I stucked again. Last time lemon-tree and misson helped me lot to Finnish the chart script I really appreciate them help. Now I can provide entired world stock market's candle stick chart from my website but the jquery . Actually I want on keyup stockname will show a drop down suggestions including stock name and on click the stock name will be automatically fulfilled and there are another input box contains id stockcode will be auto filled by the particular stock code. the drop down lookup will like apple suggetion menu (I posted the script on x10's tutorial forum). In here I am able to generate the drop down but failed to auto fill on click. The suggestion.php contain dom like below
    PHP Code:
    <p id="searchresults">
    <
    a href="#"><img src="imagefolder/companyicon.jpeg" alt="" /><span class="searchheading">Company Name</span><span>Stock Code on particular exchane </span></a><li id="stockcode"/><div id="stockname"/>
    </
    p
    I have not written much to generate the suggestion menu just this
    PHP Code:
    function lookup(inputString) {

        if(
    inputString.length == 0) {

            $(
    '#suggestions').fadeOut(); // Hide the suggestions box

        
    } else {


    //exchange contains exchange name and tyepo stock type ex eq, db, inputstring the keyup data which //is typed by user
            
    $.post("data.php", {stExchange: $('#exchange').val(),stTypeo: $('#typeo').val(),queryString: $('#inputString').val()}, function(data) { // Do an AJAX call

                
    $('#suggestions').fadeIn(); // Show the suggestions box

                
    $('#suggestions').html(data); // Fill the suggestions box

            
    });

        }


    and I tried this for auto fill
    PHP Code:
    (function() {

    $(
    '#searchresults').onclick(function(){

    var 
    stockid=($('li').get());

    var 
    stockname=($("div").get());

    $(
    "#stockname").load(country);

    $(
    "#stockcodecode").load(countryid);

    });

    }); 
    So, Can any one help me with this please I had to release the chart on mywebsite by vday but failed to do so. So, trying to complete it ASAP because after that I have to setup all sql data.
    Thanks
    Last edited by moneynetworkgroup39; 02-13-2011 at 09:52 PM.

+ Reply to Thread

Similar Threads

  1. jQuery .each()
    By pratham.gharat200395 in forum Programming Help
    Replies: 7
    Last Post: 02-10-2011, 08:12 AM
  2. Problema con Jquery
    By ferri.fc77 in forum Ayuda Web
    Replies: 0
    Last Post: 12-09-2010, 03:19 AM
  3. jquery help
    By bioshock in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 10-28-2010, 08:47 AM
  4. jQuery & CSS Help...
    By toddart65 in forum Programming Help
    Replies: 7
    Last Post: 05-16-2010, 10:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers