Thursday, 5 March 2020

WT-17

Q1.Write a java script code to accept a string from user and display the occurrences of every vowel character from String .                                                                                                      

Refer  Slip 7 and Slip 8

Q2.Design an HTML form for customer registration visiting a departmental store. Form should consists of fields such as name, contact no, gender, preferred days of purchasing, favorite item(to be selected from a list of items),suggestions etc.You should provide button to submit as well as reset the form contents.

<html>
<body>
<form>
<h1>Customer Registration</h1>
<table border=1>

<tr>
<td>Name </td>
<td><input type="text" size="20">
</tr>

<tr>
<td>Contact no </td>
<td><input type="text" size="20">
</tr>

<tr>
<td>Gender</td>
<td><input type="radio" size="20">male <input type="radio" size="20">female</td>
</tr>

<tr>
<td>days of purchasing</td>
<td><input type="text" size="20">
</tr>

<tr>
<td>favorite item</td>
<td><select name="example">
<option value="item1">Item 1
<option value="item2">Item 2
<option value="item3">Item 3
</select>
</tr>

<tr>
<td>Suggestion</td>
<td><textarea rows="4" cols="50"></textarea
</tr>

<tr>
<td><input type="reset" value="Reset"></td>
<td><input type="submit" value="Submit"></td>
</tr>

</table>
</form>
</body>

</html>