Can someone tell my why this will not append correctly. <script type="text/javascript"> function add() { if(!add.counter)add.counter = 0; add.counter++; if(add.counter < 14){ $('.inner').append('<select name="nocarers"> <option>Carers</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> <select name="day"> <option>Day</option> <option value="mon">Monday</option> <option value="tue">Tuesday</option> <option value="wed">Wednesday</option> <option value="thu">Thursday</option> <option value="fri">Friday</option> <option value="sat">Saturday</option> <option value="sun">Sunday</option> </select><br /> <select name="hours" style="width:70px;"> <option>Hours</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> </select> <select name="time" style="width:94px;"> <option>Time</option> <option value="am">AM</option> <option value="pm">PM</option> </select>'); }else{ alert("MAX"); } } </script> PHP: Thanks.