Results 1 to 1 of 1

Thread: .live() jQuery question

  1. #1
    Join Date
    Jun 2011

    Lightbulb .live() jQuery question

    If i have another page that I want to use these events... how do i change this script into a .live script??

    					$('#number').bind('keyup change focus', function(){
    							var field = this;
    							timer = setTimeout(function(){runSearch(field);}, 444);});						
    					//url selection by specifics				
    				$('#phone_book tr').data('bgcolor', '#aaf').hover(function(){
       					 var $this = $(this);
        				 var newBgc = $(this).data('bgcolor');
        			$(this).data('bgcolor', $(this).css('background-color')).css('background-color', newBgc);
      					//url selection by specifics  
    					$("#phone_book tr").click(function(){
    							var id = $(this).children().first().html();
    							var type = $(this).parents('table').siblings('div.module_header').html().toLowerCase();
    I thought I could just change $(document).ready(function() ...to.... $(document).live(function() as well as .keydown and .data to .live but i can't seem to get it to work... help please.

    Last edited by Supplement; 12-20-2012 at 02:30 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center