Im trying to send via ajax a value from a textfield, but don't want to use a form , don't think is needed:
name = document.getElementByName["icall"].value;
alert( "Data Saved: " + name );
$.ajax({
type: "GET",
url: "ajaxload/icall.php",
data: "numero="+name
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
This is the primary function, bellow is the html markup:
<div class="conteudo">
<span class="numero">O seu numero:</span><input type="text" name="icall" class="teximput" size="30"></input>
<p><span class="avisome">Precisa de ajuda com algo? Nos ligamos consigo na proxima hora!</span></p>
<a href="javascript:void(0)" onclick="ligarme();"><span class="botaoliga"></span></a>
</div>
Shouldn't this be enough?