Thread: syntax error
View Single Post
Old 09-20-2012, 02:27 PM   PM User | #9
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Quote:
Originally Posted by WolfShade View Post
That just means that the code isn't wrapped with <cfoutput></cfoutput>.

Or am I missing something?
No the whole document is wrapped with cfoutputs. lol

Thanks for the help. It is now fixed and reworked so I dont have all that crap html inside an append function. If interested, here's the js:

Code:
  $(document).ready(function(){
   $(".addSMRow").bind("click", function(){
    var $socialForms = $(".socialForms");
    if($(".sm_row").size() < 3){
     $(".moreSocial").append($socialForms.html());
    }
    if($(".sm_row").size() > 1){
     $(".remove_row").show()
    }
    if($(".sm_row").size() == 3){
     $(".addSMRow").hide();
    }
    else{
     $(".addSMRow").show();
    }
    return false;
   });
   if($(".sm_row").size() == 3){
    $(".addSMRow").hide();
   }
   $(".remove_row").live("click", function(){
    $(this).parent().remove();
    $(".addSMRow").show();
    return false;
   });
  });
__________________
Teed
teedoff is offline   Reply With Quote