SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    missing variable name Error

    I am getting a missing variable name error in this line, can someone help me figure what is wrong with it?

    Code JavaScript:
    var button_remover = '<input type="button" value="X" class="field_remove" onclick="remove_field(' + field_name, + 'this)" /><br/>';

  2. #2
    SitePoint Addict tlacaelelrl's Avatar
    Join Date
    Apr 2011
    Location
    Mexico city, Mexico
    Posts
    353
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I just figured I had to do it this way:

    Code JavaScript:
    var button_remover = '<input type="button" value="X" class="field_remove" onclick="remove_field(' + field_name + ', this)" /><br/>';


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
  •