javascript - How to: Check if textarea value = 1, do function -



javascript - How to: Check if textarea value = 1, do function -

how can function $("#div1").fadeout(); if textarea value == 1.

i found doesn't seem work:

if(document.getelementbyid('#textarea1').value.length === 1) { homecoming false; }

thanks alot

you do:

if($('#textarea1').val() === '1'){ //do // use: $('#textarea1').val().length }else{

javascript jquery

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -