-
Aug 30th, 2013, 03:54 AM
#1
Thread Starter
Frenzied Member
Clearing Hidden Fields
Hi,
I have several image boxes on my form and I do a drag drop using hiddenfields to store the imageurl. So basically the user would click add which enabled the controls and start to drag images on to each image box. I then have a save button which uses the hiddenfield value to save the image url. On the add I set all the image boxes image urls to "" but after saving one lot and add another on the save they still have the previous values. Only on the one's I've not dropped on. I am guessing it's something to do with server side / client side.
How can I clear the values on click on the add button as server side does not work.
Many Thanks,
Jiggy
-
Sep 3rd, 2013, 03:50 AM
#2
Thread Starter
Frenzied Member
Re: Clearing Hidden Fields
Any ideas please? Can't beleive no one knows a solution for this after 81 views
-
Sep 3rd, 2013, 07:03 PM
#3
Re: Clearing Hidden Fields
Any chance of putting some sample code on http://jsfiddle.net/ ?
-
Sep 4th, 2013, 03:35 AM
#4
Thread Starter
Frenzied Member
Re: Clearing Hidden Fields
I ended up sorting it myself thanks. Not a strong forum for javascript coding. I basically needed to initialise my hiddenfields on a client button click because even though I was initialising them server side this did not change the client side.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|