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 -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -