Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //tentativa 1
- $('#idDiv').val() != undefined
- //tentativa 2
- typeof($('#idDiv').val()) != 'undefined'
- //tentativa 3
- var varIdDiv = $('#idDiv').attr("value");
- if (varIdDiv) { /*código maroto*/ }
- if ($('#idDiv').length > 0) { /*código maroto*/ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement