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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -