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

c# - Move local mssql database to webhosted MYSQL -

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

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -