Uh, hello there. I need some assistance with ajax. I'll currently made some script that will used for registration form--which has been created with ajax and some HTML. But I'm stuck with it. Someone help me?
Code :
Code :
- Code:
var textarea = document.getElementById('message textarea');
var input = document.getElementById('subject input');
$.post('/post', 'mode=newtopic&f=forumidhere&post=1&subject='+input.value.replace(/\s/g,"+"), function(data) {
console.log(data); //or another stuff
}
});