1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP supports jquery??

Discussion in 'PHP' started by lavinpratap, Nov 15, 2011.

  1. #1
    Does php support jquery. And if so is the following possible??

    I also want to know if the following is possible using jquery.

    1) I have certain search criteria in drop downlist box.
    2) The first list box will be loaded when the page loads.
    3) When a item is selected from the list the next drop down list should be filled in taking data from DB. But the page should be refreshed or loaded again.

    Is this possible??
     
    lavinpratap, Nov 15, 2011 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Yes. PHP is executed before any output to the visitor. Javascript is client side code, so you can populate javascript, including jquery before the page is loaded. As far as changing values after a selection is made, the best method would be to make an ajax request to a back-end php script and then populate a new select box or other option for the user. You can also submit the page to a php form when the first selection is made and then populate a new form.
     
    jestep, Nov 15, 2011 IP
    Rukbat likes this.
  3. leonamgts

    leonamgts Greenhorn

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Of course this is possible
     
    leonamgts, Nov 16, 2011 IP