HTML field not updated


Posted by Helge - Mar 2 ’16 at 10:34


I am creating a HTML script but can't find a way to define a global variable that works in and outside of my procedures, any suggestions?

Second question, since I can't manage to define a global variable I tought that I could use a html text field named "TaskId" as a workaround.

using the logic below, but altough the field is updated the IF function does not work before i enter the script again - its not updated while I am "in" the script?


$('#TaskId').attr('value', 'fant');

if (document.getElementById("TaskId").value=="fant") {alert("fant");} else {alert("fant ikke");}

  • helpinhomework123
    Member for: 6 months 16 days
    #11 by helpinhomework123 Sep 18 ’21 at 10:24

    If you are in need of personalized and plagiarism-free Taxation assignment help, our experts at Help in Homework are the best  help. They will complete your assignments as per the instructions of your professor so that you can seize every single score and at top rank and impress your professor for sure. They will ensure that your assignment is delivered on time and at a very affordable rate. Our experts are equipped with the right degree, knowledge, skills, and experience to professionally help you. Visit our official site - and stay stress-free!

Displaying 11 to 11 of 11 messages