Wow, that is strange it indeed works :o The error is; Object doesn't support this property or method
But i figured what the problem is because I changed the code; <div id="contactform"> <div> <input type="text" name="name" value="" /> </div> </div> name = $("#contactform input[name=name]").val(); But, it goes wrong on #contactform, I thought this should work? This does work but i do not prefer this name = $("#contactform div input[name=name]").val();