-
Please refer code below i m learning jquery and i want to display
tag named #child on submit button click using javascript/jquery can any one help me how to call on button click -
And also want to call #child and #home tag on >>(next button) & <<(prev button)** on button click respectively in code >> and<< is written as < and &glt.? can anyone
help me out ?<div data-role="page" id="home"> <div data-theme="d" data-role="header"> <h3> The Grand Bhagvati </h3> <a data-role="button" data-inline="true" data-direction="reverse" data-transition="slide" href="#home"> << </a> <a data-role="button" data-inline="true" data-direction="reverse" data-transition="fade" href="#child"> >> </a> </div> <div data-role="content"> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-mini="true"> <label for="textinput1"> User: </label> <input id="textinput1" placeholder="Khushu" type="text" /> </fieldset> </div> <input data-theme="d" ="submitbtn" value="Login" type="submit" onSubmit="redirect()"/> </div> <div data-theme="a" data-role="footer" data-position="fixed" > <h3> Page1 </h3> </div> </div>
<div data-role="page" id="child"> <div data-theme="d" data-role="header"> <h3> The Grand Bhagvati </h3> <a data-role="button" data-inline="true" data-direction="reverse" data-transition="slide" > << </a> <a data-role="button" data-inline="true" data-direction="reverse" data-transition="fade" > >> </a> </div> <div data-role="content"> <div data-role="fieldcontain"> <fieldset data-role="controlgroup" data-mini="true"> <label for="textinput1"> User: </label> <input id="textinput1" placeholder="Khushu" type="text" /> </fieldset> </div> <input data-theme="d" value="Login" type="submit" onsubmit="redirect()"/> </div> <div data-theme="a" data-role="footer" data-position="fixed" > <h3> Page1 </h3> </div> </div>
Javascript – How to call on submit button click
htmljavascriptjqueryonclick
Related Topic
- Javascript – How to check if an element is hidden in jQuery
- Javascript – Remove properties from objects (JavaScript)
- Javascript – How to redirect to another webpage
- Javascript – How to know which radio button is selected via jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – How to check whether a string contains a substring in JavaScript
- Javascript – How to remove a specific item from an array
- Javascript – How to return the response from an asynchronous call
htmljavascriptjqueryonclick
Related Topic
- Javascript – How to check if an element is hidden in jQuery
- Javascript – Remove properties from objects (JavaScript)
- Javascript – How to redirect to another webpage
- Javascript – How to know which radio button is selected via jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – How to check whether a string contains a substring in JavaScript
- Javascript – How to remove a specific item from an array
- Javascript – How to return the response from an asynchronous call
Best Answer
To show a tag use
and to hide ...
alternatively, you can simply toggle it between hide/show as follows:
to attach these to an onclick event of a button ...
hope this helps