× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

searchfield - reset not working

  • mandalas.hotmail.co
  • Offline
More
8 years 4 months ago #3648 by mandalas.hotmail.co
searchfield - reset not working was created by mandalas.hotmail.co
I've inserted two searchfields into my form but they won't clear on reset. Not with an additional reset button either.

Also, do you have the html for the example for searchfield in documentation? (see screenshot)
This is exactly what I need but I can't figure out how to combine searchfield and fieldlist.

This message has an attachment image.
Please log in or register to see it.

Please Log in to join the conversation.

More
8 years 4 months ago #3649 by Dirk
Replied by Dirk on topic searchfield - reset not working
Here is the default code for the reset button.
<input class="button btn reset" value="reset..." 
onmousedown="submitSearch('reset');void(0);" type="submit" />

As you see. Clicking the button does not empty the values instead it sets the task to "reset" and send the form.

But there seems to be problem with jQuery 1.6 and the .prop() function.
Can you please replace the files in
/components/com_joodb/views/catalog/tmpl
with the file in the attached zip?

Attachment haefb372.zip not found

This message has an attachment file.
Please log in or register to see it.

Please Log in to join the conversation.

  • mandalas.hotmail.co
  • Offline
More
8 years 4 months ago - 8 years 4 months ago #3650 by mandalas.hotmail.co
Replied by mandalas.hotmail.co on topic searchfield - reset not working
I did replace the files and the reset works now. All fields are being emptied. Thank you
Last edit: 8 years 4 months ago by mandalas.hotmail.co. Reason: Initial problem temporarily resolved

Please Log in to join the conversation.

Moderators: Dirkjoest