I have not a good Javascript knowledge, but I'm kinda good with jQuery though. I want to change some jQuery code to pure Javascript, but I have no idea how to do it.
$(document).ready(function()
{
$('#block').one('click', function()
{
$(this).val('{L_SEND_CONFIRM}').removeClass('button1');
$('#replacement').val('{L_BLOCK_CODE}');
});
});
Anyone willing to help me out please?
P.S: Sorry for asking such a dumb question, I really need to learn Javascript myself ASAP.
var block = document.getElementById('block'); function blacklist_click() { block.className = ''; block.innerHTML = '{LA_SEND_CONFIRM}'; document.getElementById('replacement').innerHTML = '{LA_BLOCK_CODE}'; }; block.addEventHandler('click', blacklist_click); block.attachEvent('onclick', blacklist_click);It didn't work. I need this Javascript instead of jQuery because of validation by a website, they don't like jQuery because it takes longer to load -.-