how to set value in ckeditor using jquery?

HTML How do I fix the submit button?

  • Hi, I'm trying to get this code right here to work. I have a FAQ page for a site I'm working on, and I am trying to make a drop down box that changes the iframe page when you hit the submit (go) button. I have the iframes set with autoheight using jquery.js autoHeight plugin. Now everything works when I change it the option, but I don't want. I want that changed to when you hit the submit button. I'm stumped and been searching the web for quite some time, and can't seem to find my answer. <form method="get"> <table width="500" align="center" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="right"> <table cellpadding="2" cellspacing="0" border="0"><tr> <td> <select style="width:205px" name="dest" on="window.open(this.options[this.select… <option value="faq1.html">Show All FAQ's</option> <option value="faq2.html">Association Setup</option> <option value="faq3.html">Managing Document Uploads</option> <option value="faq4.html">Managing Your Links</option> <option value="faq5.html">Manage Your Pictures</option> <option value="faq6.html">Maps</option> <option value="faq7.html">Reports</option> </select> </td> <td><input name="dest" type="submit" value="Go" /></td> </tr> </table> </td> </tr> </table> </form> <iframe width="700" id="myframe" name="myframe" class="autoHeight" scrolling="auto" frameborder="0" src="faq1.html"> </iframe>

  • Answer:

    I think this modified version of your code will do what you want it to: <form action="javascript:null" name="faq"> <table width="500" align="center" cellpadding="2" cellspacing="0" border="0"> <tr> <td align="right"> <table cellpadding="2" cellspacing="0" border="0"><tr> <td> <select style="width:205px" name="dest" id="dest"> <option value="faq1.html">Show All FAQ's</option> <option value="faq2.html">Association Setup</option> <option value="faq3.html">Managing Document Uploads</option> <option value="faq4.html">Managing Your Links</option> <option value="faq5.html">Manage Your Pictures</option> <option value="faq6.html">Maps</option> <option value="faq7.html">Reports</option> </select> </td> <td><input name="dest" type="submit" value="Go" onclick= "document.getElementById( 'myframe' ).src = document.getElementById( 'dest' ).value;" /></td> </tr> </table> </td> </tr> </table> </form> <iframe width="700" id="myframe" name="myframe" class="autoHeight" scrolling="auto" frameborder="0" src="faq1.html"> </iframe> The select tag has no onsubmit attribute. Instead I've used the onclick attribute on the submit input tag. For more on the select and input tags see: http://www.html-tags-guide.com/html-select-tag.html and http://www.html-tags-guide.com/html-input-tag.html

Jacob C at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.