php


Change Folder Path Based on Dropdown


I am trying to change a folder path based on a dropdown selection on a page with two menus. I have certain links that need to change and determined it would be easiest if I could change the folder path. I found a couple ways to do with with jquery and a single dropdown, but haven't been able to get it to work with two. Also note that all of the divs are hidden until a state is selected, then I show the applications, but I need the folder path where it notes, CHANGE FOLDER, to be the name of the select state.
Here is the code.
Thanks!
<h3 class="xlrg2"><strong class="txt-orange"><span id="aggregator_name_form"></span></strong> Application Forms:</h3>
<select class="text_select select-forms" id="select-state" name="select-state" onchange="select-state();">
<option value="Select State">Select State</option>
<option value="Arkansas">AR - Arkansas</option>
<option value="Colorado">CO - Colorado</option>
<option value="Idaho">ID - Idaho</option>
<option value="Indiana">IN - Indiana</option>
<option value="Iowa">IA - Iowa</option>
<option value="Kansas">KS - Kansas</option>
<option value="Minnesota">MN - Minnesota</option>
<option value="Missouri">MO - Missouri</option>
<option value="Montana">MT - Montana</option>
<option value="Nebraska">NE - Nebraska</option>
<option value="North Dakota">ND - North Dakota</option>
<option value="Oregon">OR - Oregon</option>
<option value="South Dakota">SD - South Dakota</option>
<option value="Utah">UT - Utah</option>
<option value="Wisconsin">WI - Wisconsin</option>
<option value="Wyoming">WY - Wyoming</option>
</select>
<br/>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"><h3 class="xlrg2">Select Type:</h3>
<select class="select-forms" id="practice-type" name="practice-type">
<option value="all">All Applications Forms</option>
<option value="physicians">Physicians</option>
<option value="otherhcp">Other Health Care Professionals</option>
<option value="hcfacilities">Health Care Facilities</option>
<option value="ltc">Long-Term Care Organizations</option>
<option value="hospitals">Hospitals</option>
</select>
</div>
<!-- State Specific -->
<div class="pdf2 lnht-16 vmiddle">
<a class="pdfdownload-icon pull-left" href="/docs/forms/state/MN/MMIC_PHY_Physicians_Surgeons_Professional_Liability_Application_New_Business.pdf" target="_blank"> </a> <a class="pdfdownload paddtop-15" href="/docs/forms/state/MN/MMIC_PHY_Physicians_Surgeons_Professional_Liability_Application_New_Business.pdf" target="_blank"><span class="txt-dblue">NEW BUSINESS</span> - Physicians and Surgeons Professional Liability Application</a>
</div>
<div class="pdf2 lnht-16 vmiddle">
<a class="pdfdownload-icon pull-left" href="/docs/forms/state/CHANGE THIS FOLDER/MMIC_PHY_Physicians_Surgeons_Professional_Liability_Application_Renewal.pdf" target="_blank"> </a> <a class="pdfdownload paddtop-15" href="/docs/forms/CHANGE THIS FOLDER/MN/MMIC_PHY_Physicians_Surgeons_Professional_Liability_Application_Renewal.pdf" target="_blank"><span class="txt-dblue">RENEWAL</span> - Physicians and Surgeons Professional Liability Application</a>
</div>
<!-- End State Specific -->

Related Links

How do I load contents in a table cell?
Laravel - Generating bootstrap/compiled.php without invoking the composer dump-autoload --optimize
how: Custom field panel in wordpress
File Upload PHP AJAX
PHP Validation error message order
php if isset _GET chapter or marker
PHP How do I format a number to show the hundreds as zero if the number is less than 100?
PHP classes cannot be loaded unless namescape is included or commented out
Regex and PHP - how to match this string?
How to capture HTTP headers when invoking php-cgi as a subprocess?
Count content of column
echo response php +json encode
Displaying posts from a single Taxonomy term
htaccess rewrite all but one php file?
Edit and Save XML in AS3 Flash
Connect to IP address instead of localhost in php symfony?

Categories

HOME
amazon-web-services
visual-studio
android-espresso
mc
long-integer
celery
consul
bing-search
phpseclib
static-analysis
msmq
fireloop
stimulsoft
spring-jpa
bundler
jodatime
xsl-fo
spam
adminlte
fluent-migrator
candlestick-chart
substring
clipboard
math.js
laravel-4.2
ibm-connections
jsonresult
envoy
es6-modules
mapnik
fotorama
epplus
recovery
python-sounddevice
best-buy-api
microkernel
spooler
react-intl
common-table-expression
viewmodel
cyanogenmod
patternlab.io
dynamics-crm-4
mpmovieplayercontroller
gawk
logical
livereload
callouts
conan
fiber
static-methods
exists
polymerfire
m4
bayesglm
stack-smash
shell-extensions
python-curses
cakephp-2.2
device-admin
global-scope
storing-data
oxygene
jms-serializer
armv6
visual-c++-2005
discovery
ggts
revmob
tnt4j
node.js-stream
oscilloscope
jsplitpane
getproperty
taskkill
hardcode
exponent
acpi
quartz-core
sigar
motodev-studio
filelock
winsxs
sql-parametrized-query
mongrel2
git-log
bass
zend-test
eventaggregator
tacit-programming
icon-language
synthesizer
parentid

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App