When i name the Button Button does that mean that if other buttons are on page it could activate?

When i use a simple <button> with no id or name does that mean any button can activate this sort of thing… Must i use id or something to id it if i want to make sure some other button does not kick it off.’

<!-- Load the hidden form. -->
<button>Load Hidden Form</button>

<!-- Hidden form load script -->
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#div1").load("full.php");
  });
});
</script>

<!-- Hidden Form loads here. -->
<div id="div1">


If a button is inside of a form, that can cause the form to be submitted. Otherwise though you have nothing to worry about.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.