SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Javascript Dropdown Value Selected Automatically

    I was wondering what the code would be for a script that automatically chooses a value on a page every time I visit it.
    It's for shop searching and I search a LOT. I get tired of clicking Exact Match every time as I never use the within my phrase option as it gives me a LOAD of miscellaneous results.

    Code:
    <select name="type">
    <option value="0">Within My Phrase</option>
    <option value="1">Exact Match</option>
    </select>
    Thanks!

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,938
    Mentioned
    214 Post(s)
    Tagged
    12 Thread(s)
    Hi Vunistas,

    Welcome to the forums

    Just to rephrase your question:
    There is a site you visit which is not under your control.
    You use the site's search functionality a lot.
    You are tired of manually selecting "Exact Match" from the search drop down every time you search.
    You are therefore looking for a way for this option to be pre-selected as soon as you visit the site.

    Is this correct?
    If so, could you provide a link to the site in question?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •