SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: jquery .blur() event not triggering

  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Location
    London, ON
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery .blur() event not triggering

    Hello all,

    I've spent a good while trying to solve this on my own with no luck. The .blur jquery event I'm trying to use isn't firing and I can't figure out why.

    My entire JS file:
    Code:
    $('#unitOneRent').blur(function() {
        alert('**** yeah!');
    });
    
    $(function() {
        $( "#datepicker" ).datepicker();
    });
    And the snippet where its used:
    Code:
    <div class="fm-opt">
    <label>Unit Name:</label> <input type="text" name="unitOne" />
    <label>Current Rent (per Mnth):</label> <input id="unitOneRent" type="text" name="unitOneRent" />
    </div>
    Any ideas?
    Ryan Price
    Subscribe to my blog for regular tips and tricks

  2. #2
    SitePoint Member
    Join Date
    Oct 2010
    Location
    China
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    although i have not seen your integral code,i guess that the problem is the js file reference.
    Code:
    <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
    ..right
    Code:
    <script type="text/javascript" src="jquery-1.4.2.min.js" />
    ..wrong

Bookmarks

Posting Permissions

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