KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My current code is as follows: <div class="fr_search"> <form action="/" accept-charset="UTF-8" method="post" id="search-theme-form"> ....... </form> </div> Now I want to write a function to change the form action and method, when a condition is met. How do I write this code? For example, function test() { if (selectedIndex === 1).... } // How do I write this code?
Tags (comma-separated)
Save Edits
Cancel