9 years ago
1
Topic

How can you with javascript when the page loads, a field to query whether there what is entered.

Get a Book for SEBLOD
7 years ago
0
Level 1

Hi Paulsche, 

The code below will catch the value of a field at the page loading and will be displayed. 

Is that what you needed ?

$(document).ready(function(){
     var fieldContent;
     fieldContent = $("#field_name").val();
     alert(fieldContent);
});
Get a Book for SEBLOD