Skip to main content

Bug Tracker

Side navigation

#9223 closed bug (worksforme)

Opened May 11, 2011 12:27AM UTC

Closed May 11, 2011 03:11PM UTC

Live blur focus

Reported by: Owned by:
Priority: low Milestone:
Component: event Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

I cannot get the following script to work. The 'focus' function works, but the 'blur' function does not. I tried to run it with JsFiddle but to no avail.

Here is the script

function initiateFieldLabels(){
  		focus: function() {
			var value =$(this).val();
				$(this).after('<input type=\\"hidden\\" id=\\"'+$(this).attr('id')+'-default\\" value=\\"'+value+'\\" />');	
 		blur: function() {
			var value = $('#'+$(this).attr('id')+'-default').val();
Attachments (0)
Change History (2)

Changed May 11, 2011 10:27AM UTC by Benji6996 comment:1

Here is an example:

Changed May 11, 2011 03:11PM UTC by timmywil comment:2

component: unfiledevent
priority: undecidedlow
resolution: → worksforme
status: newclosed