Search
 
SCRIPT & CODE EXAMPLE
 

HTML

conditions option in html

<form action="" onsubmit="myFunction()">
    <label for="fname">First name:</label><br>
    <input type="text" id="fname" name="fname" value=""><br>
    <label for="lname">Last name:</label><br>
    <input type="text" id="lname" name="lname" value=""><br><br>
    <input type="submit" value="Submit">
</form> 
<script type="text/javascript">
   function myFunction(){
     var fname = document.getElementById("fname").value;
     if(fname == '<>')
        alert("Condition met")
   }
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: How to create collapsable using pure Javascript 
Html :: remove autocomplete 
Html :: display c# code in html 
Html :: how often does wordle reset 
Html :: python convert html table to text 
Html :: html path svg stop 
Html :: salesforce required asterisk input filed 
Html :: svm e1071 cutoff 
Html :: when I refresh my page it comes back to the same place html 
Html :: customer details pay button code 
Html :: drupal to wordpress 
Html :: ellipisis bootstrap 3 
Html :: dont ignore space tag html 
Html :: show image inside table with innerhtml 
Html :: how to inlcudes js in html 
Html :: Metabox 
Html :: vue children not reload route params change 
Html :: membuat navbar html sederhana 
Html :: london poem analysis 
Html :: how to underline any text in html without css 
Html :: http form 
Html :: haw to fmake a link open in a new tag in html 
Html :: pass parameter and jump to particular section 
Html :: bold markup 
Html :: html button ondrag 
Html :: space animation html 
Html :: DWS Basic HTML Template 
Html :: font-awesome - cdnjs.com - The best FOSS CDN for web 
Html :: heiht jtml 
Html :: <pre; html tag that preserves spacing 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =