How to have a button to reset a field and not the whole form?

Hi,
Can anyone help me with this dilemma please? All tutorials online demonstrates how to have a button to reset the whole form, but i only want the user to clear 1 field in the form.
I have a form which has a field representing a persons name who has booked out a piece of equipment. I would like the administrator to be able to clear the field quickly without having to select the whole name and then delete it, ready to insert the name of another booker.
Any help would be very much appreciated. (If it is using dreamweaver features than that is better.)
Thank you!

There's nothing in DW that will do this for you.
This script from the internet seems to do the trick. Add this to the <head> section of your page...
<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
function resetForm() {
  $(this.previousSibling).val(function() {
  return this.defaultValue;
$( "input[type='button']" ).bind( "click", resetForm );
});//]]> 
</script>
Then add your form in the <body>...
<form>
  <label for="textfield1">Text Field:</label>
  <input type="text" name="textfield1" id="textfield1"><input type="button" value="reset" /><br />
  <label for="textfield2">Text Field:</label>
  <input type="text" name="textfield2" id="textfield2"><input type="button" value="reset" /><br />
  <label for="textfield3">Text Field:</label>
  <input type="text" name="textfield3" id="textfield3"><input type="button" value="reset" /><br />
  <label for="textfield4">Text Field:</label>
  <input type="text" name="textfield4" id="textfield4"><input type="button" value="reset" /><br />
</form>
EDIT: Ha! Same script as you found Nancy, posted originally at the exact same time too (I threw a couple modifications in)...
Good times, good times.

Similar Messages

  • How to delete one perticular message from a user and not the whole messages

    hi
    i would like to know how can i delete a single message sent by a person and not the complete list of message received by me from the same person also how can i forward a message received by me

    beesani
    Sorry. ;( You can"t delete part of a message. You can only delete the entire message from that person.
    will2b

  • How to disable a single cell in a table (and not the whole column)

    Hi there,
    I've got a webdynpro table with a few columns, rows can be created dynamically through a button in the table toolbar.
    Depending on the value of a certain cell I have to disable another cell (in the same row).
    I tried to manipulate the view in the modifyview but no joy. I also tried to manipulate the attribute property through the coding below:
      DATA lv_knttp TYPE knttp.
      lo_nd_kostl = wd_context->path_get_node( path = `MULTIVALUES.KOSTL` ).
      lo_el_kostl = lo_nd_kostl->get_element( ).
      lo_el_kostl->set_attribute_property(
      attribute_name = 'LTEXT'
              property       = lo_el_kostl->e_property-enabled
              value          = ''
    but it disables the whole column!!!! I just need the cell to be disabled (I thought the code above, through the lead selection, would affect a certain cell only - but I was wrong).
    Any ideas?
    Thanks!!!

    Hi,
    using cell variants you can do this.,
    check this article: [Cell Variants in WDA|http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants]
    Instead of binding the read only property of table as a whole , just bind the read only property of column group of table., You can do this bu drill down the table and select the required column and bind the read only column.,
    then In onAction Event of button .,
    loop the table, if condition satisfied set the read only property to true else false.,!!
    hope this helps u.,
    Thanks & regards,
    Kiran

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

  • How may I print out a picture from paper and not the photo tray?

    How may I print out a picture from paper and not the photo tray?

    From paper?  Do you have a digital image of it on your iPhone?
    "Photo tray"?  What do you mean here?  The iPhone does not have a photo tray.  Printers have trays.

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How can I copy a number of like fields and paste to reduce form creation time?

    How can I copy a number of like fields and paste to reduce form creation time?

    Creating Form Fields by Ted Padova

  • How do I send just a song to someone and not the entire album?

    How do I send just a song to someone and not the entire album??

    If you are using an iOS device then no, I don't think that you can gift a song, it will need to be the whole album. If you are using your computer's iTunes, and it's not an album-only track, then you should be able to gift individual songs via the downward pointing arrow next to the song's price.

  • How do you make it print first page first and not the last page first?

    I have a HP Officejet Pro 8600. How do I make the first page print first and not the last page printing first?

    Hi,
    From the application used to print open the print dialog and click Oroperties or Preferences to access the Printing Preferences screen.
    From the Layout tab set Page Order as Back to Front, then the first page will be printed first.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Mail: how to download ONLY last emails and not the whole hotmail.

    Hi!
    Quick question: like what Mail does in iPhones/iPads, how can I configure Mail in my iMac or Macbook Pro so that it only downloads the last, say 50 emails and not the 4000 aprox. emails I have inside the hotmail (now outlook) server?
    I have been wanting to use mail for a long time but I can't seem to find that option. I only want to see the LAST EMAILS like what happens in the app on my iPhone.
    Thanks.

    unless there is a special setting in yahoo webmail interface that allows this (gmail pop has it for example), there is no way to do it. POP will download all available messages on the first download. that's how POP works. from there on it will only download new ones.

  • How do you select n rows and not the whole table

    Hi
    I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
    Thanks

    Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
    select *
      from (select whatever
            from table
           order by key desc
    where rownum <= 50

  • How to migrate just one email account to another computer not the whole profile

    I have several email accounts in the default profile. I added an account to help a friend scrape email off a webmail server to solve his quota problem. They are visible in their separate inbox and folders. Now I want to "export" his emails in a format that can be imported into his newly installed Thunderbird. If I back up and restore the whole profile won't it take all of my accounts with it? Don't want that. Just want to move his data.

    You could use ImportExportTools addon.
    * https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/
    download file to eg: desktop
    To install addon:
    In Thunderbird
    * Tools > addons
    * click on gear wheel icon
    * select; Install addon from file
    * locate the file you downloaded and click on Open
    You may need to restart Thunderbird.
    To use the tool:
    * Right click on folder - select 'ImportExporttools > Export folder
    note: If Pop mail account - no worries as everything is stored in TB profile.
    If IMAP mail account, make sure all subscribed folders were synchronised to get an mbox copy in the Profile folder as subscribed folders (not synchronised) only download headers. Then go offline mode (this temporarilly stops synchronising) to Export them.
    When all folders are exported, you can copy then to a suitable medium eg: usb stick, so that your friend can copy them to another computer.
    Your friend could use the same addon to Import those folders into Thunderbird after creating the mail account.
    When you have exported all of the folders with emails, you could remove the mail account.
    * Tools > account Settings
    * select the mail account
    * click on 'Account actions'
    * select 'Remove account'
    * click on OK
    You may then need to also remove them from your Profile folder.
    Help > Troubleshooting Information
    click on 'show Folder'
    a window opens showing Profile folder. You might need to make hidden files and folders visible to see these files.
    http://kb.mozillazine.org/Show_hidden_files_and_folders
    Close Thunderbird now this is important.
    click on 'Mail' folder (has pop mail accounts and Local folders) or ImapMail fo IMAP folders and look for and delete your friends mail account name folder.
    then restart Thunderbird.

  • How to create a button in a interactive document and use the button to launch and external "exe." file.

    I created an interactive document and will export as a swf.  I would like to create a button in the interactive document to launch and external "exe." file. Is this possible.

    You will need to create custom web part editor. Look at the following example. It also have added button and its events. I am sure you can use this sample as base and code your logic.
    http://msdn.microsoft.com/en-us/library/hh228018(v=office.14).aspx
    Amit

  • How do I send a group message to both imessage and non imessage users and have replies only come back to me and not the group??

    Wish to setup a group message but don't want users to know its a group and only want replies to be sent to me not the group... How do I do this???

    BCC (?) [Blind Carbon Copy]    

  • How do i put one playlist on my ipod and not the entire library

    I have recently purchased the newest ipod nano and downloaded the newest itunes and I cannot seem to find out how to select one playlist to go on my ipod. I don't want the entire library but only 1 of the playlists. How do i do this?
    Thank you!

    If you are using iTunes from version 7 onwards, then when you connect the iPod the summary screen should automatically open.
    If you click on the 'music' tab, you will see the options to:
    "sync music" with either "all songs and playlists" or "selected playlists".

Maybe you are looking for

  • How to change the language used for Aperture?

    I'm new to Aperture, I'm a Photoshop Elements 6.0 user, however I found that Aperture has some things that I like better than Photoshop. Now I downloaded the test version in order to check if its worth it, therefore I downloaded from the Apple homepa

  • Download files from table.

    HI Experts, I have some files stored in a table. The table structure is as follows. MANDT     MANDT     CLNT     3     0     Client RELID     INDX_RELID     CHAR     2     0     Area in IMPORT/EXPORT data table TEXT_AREA     CHAR3     CHAR     3     

  • When will i get the update 4.4

    Hey I know they might be a lot of post about it, but i keep reading on the internet that the 4.4 kit kat for xperia z1 is out.  Even if i plug my phone to my conputer.. its doesnt show any updated and i would like to have it.  I'm from Canada with Ro

  • How do I take a screenshot? (PC or Mac)

    QuestionHow do I take a screenshot? (PC or Mac) Answer Question How do I take a screenshot with a PC? (Scroll down for Mac instructions) Answer If you are experiencing an issue at home that we can't recreate here at Tagged, we often ask that you send

  • Error Message: You muyst have IE 5.5 or higher to use the Contact Center Manager Admin.

    Trying to download an application for work,  Tried on the IE 8, 10 & 11 with no add ons and in the compatibility mode and it will not work.  I continue to get the error message:  You must have IE 5.5 or higher to use the Contact Center Manager Admin.