Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Simple IF javascript for dropdown, populates two different fields

$
0
0

I don't write js, but can grasp what it's doing when I snag a sample to edit and re-purpose. I have a simple fax form that already resets on open. Here's all I'm trying to do:

 

User selects sender name from dropdown list of about 15 (will grow w/ time)

 

Populate next text field "Sender Fax #" with user's direct fax number (xxx-xxx-xxxx in the js)

 

Also populate subsequent text field "Sender Ph #" with user's direct ph number (xxx-xxx-xxxx in the js)


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>