Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8379103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:05:25+00:00 2026-06-09T16:05:25+00:00

<form class="form-inline" action="javascript:function()" > <input id="searchKey2" type="text" class="pageSearchBar " > </form> I have an

  • 0
<form class="form-inline" action="javascript:function()" >
<input id="searchKey2" type="text" class="pageSearchBar "  >
</form>

I have an input search bar like the above, each time I search I want the search query to be deleted from the bar but I am not sure on how to do it in JavaScript.

Also is there a way to set the form value, except document.getElementById('id').innerHTML?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:05:26+00:00Added an answer on June 9, 2026 at 4:05 pm

    if you want to set the form field, you can do this

    document.getElementById('searchKey2').value = 'something';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a radio button, containing an inline onclick event: <input type="radio" class="quantitycheckbox" onclick="alterQuantity(this.form)">
My form class: <?php require_once ('Zend\Form.php'); class Sergio_Form_registrationform extends Zend_Form { public function init(){
Is there any html form class(text box) that does not allow null values. The
I have a Form class partial class ProgressMainForm : Form { public ProgressMainForm() {
I override ProcessCmdKey() in my MDI parent form class and have some keyboard shortcut
I have a std::vector of some class of the form class A{ public: A():i(someNumber){}
I use the following function to show controls on my form: class procedure TFormMain.FadeControls(ctrl:Array
I have these models: class Supplier(models.Model): name = models.CharField(max_length=50) def __unicode__(self): return u"%s" %
Given the following sample form code and CSS stylesheet Form <div class="Center_300 "> <button
I'm tring to make more accessible the following code (inside a form): <div class="contButton">

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.