Jump to content

shaili_shah

Members
  • Posts

    111
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by shaili_shah

  1. I think that you want to open it by default ? So for that use this class="collapse show" , it'll by default open collapsible group. I hope this'll help you. Thanks!
  2. So you can use this css : position: relative; left: 100%; top: 0; Hope it'll help. Thanks!
  3. Sorry , I didn't understand your question. But I say as much as I understand. You should link your css in html document using <Link> tag. Or put your css under the <head> tag in <Style> tag. I think that's the problem. Thanks!
  4. You can use '' mouseover '' event of jquery. $('.dropdown-submenu a.test').mouseover(function(e){ I hope this will help you. Thanks!
  5. <body> <form id="form1"> <select onchange="location = this.value;"> <option value="Home.html" >Home</option> <option value="About.html" >About</option> </select> </form> </body> I hope you'll get this. Thanks !
  6. You can use " position: fixed; " of css property. It will fix your navbar. I hope this will help you.
  7. I am unclear about your question. But the more I understood, the more I would explain. Here is my code for darkmode option. Example : <style> body { padding: 25px; background-color: white; color: black; font-size: 25px; } .dark-mode { background-color: black; color: white; } </style> <body> <h2>Dark mode</h2> <p>tap the button.</p> <button onclick="myFunction()">dark mode</button> <script> function myFunction() { var element = document.body; element.classList.toggle("dark-mode"); } </script> </body> I hope you'll understand. If you have any doubt then you can freely ask. Thank You.
  8. Hii Matija. okay, so you meant that you just want to copy cell value when button is clilcked. I have written the code on jsfiddle. refere this : https://jsfiddle.net/p9j623ob/8/ I hope now you will understand the code. If you do so let me know. Thank you.
  9. As you said i have written some code here it is. function copy() { var copyText = document.getElementById("myInput"); copyText.select(); document.execCommand("copy"); alert("Copied the text: " + copyText.value); } <form action="https://www.w3docs.com/" method="get" target="_blank"> <input type="text" value="Hello World" id="myInput"> <button onclick="copy()">Copy text</button> </form> I hope it'll be helpful to you.
  10. function myFunction() { var hostip = location.host; document.getElementById("videohls").innerHTML = hostip ; var url = " http:// "+ hostip + /"1.m3u8 "; $("#id-of-video-tag> source").attr("src", url);} I think this will work. Hope this will help you.
  11. Yes you can use onclick event as <asp:RadioButton ID="chkNo" Text="No" runat="server" onclick="fn()" /> you can add your own function. After this you can use the JavaScript to define function. <script type="text/javascript"> function fn() { alert("I have clicked no button"); } </script> i hope you will understand.
  12. You can include file as : <!-- #include file="somefilename" --> you have to place include directive inside the comment tags. Hope this'll help you.
  13. I have tried with this code : First of all you have to add this reference in link tag : <link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> Now our script is : <script> $( function() { $( "#accordion" ).accordion(); }); </script> And finally out html page is : <body> <div id="accordion"> <h3>Section 1</h3> <div> <p> This is section 1. </p> </div> <h3>Section 2</h3> <div> <p> This is section 2. </p> </div> </div> </body> I hope this will help you.😊
  14. <label for="option">Choose 2:</label> <select id="cars" onchange="select()"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <select id="cars1"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <script> function select() { var sel = document.getElementById("cars").value; var x = document.getElementById("cars1").options[sel-1].disabled = true; } </script> Here I have take [sel-1] because it's starting index is 0. I hope this will help you.
  15. shaili_shah

    CSS Animation

    There is Animation, Transition and Transform property of CSS. I have used transition and transform property on image like : <style> img { width: 100px; height: 100px; transition: width 2s, height 2s, transform 2s; } img : hover { width: 300px; height: 300px; transform: rotate(360deg); } </style> And Html tag : <body> <img src="~/img.png"/> </body> I hope you'll meet your desired output..!
  16. I think there is one more function for doing that : SELECT STUFF('ALJ Diane Davis - WCF', 17, 21, 'WCF -') Let me know if you are doing as above😊.
  17. If you want to show null value then you have to try this query : select t1.table1id, t1.table2id, t2.table2name from table1 t1 left join table2 t2 on t1.table2id = t2.table2id ; If you do not want to show that null values then use this query : select t1.table1id, t1.table2id, t2.table2name from table1 t1 inner join table2 t2 on t1.table2id = t2.table2id ; I hope this will show you your desired answer. let me know if you do this.
  18. I think this query will give you the desired result : select cno , MAX(pno) as pno from ono group by cno;
  19. I've learnt HTML and CSS from https://www.w3schools.com/ . This is best site for beginners. another references given below: 1) https://www.javatpoint.com/ 2) https://stackoverflow.com/ 3) https://www.tutorialspoint.com/index.htm I hope this will help you.
  20. shaili_shah

    Tooltips

    Tooltips can be attached to any active element (icons, text links, buttons, etc.) on a page.it include both text and image
  21. you can use <br> tag for break headings and apply style for display heading in center <html> <body> <h1 style="text-align:center"> We buy cars <br/>city </h1> </body> </html>
  22. #tuscaloosa-river-market-vendors{ color:white; background-color:black; }
  23. dir attribute sets the direction of the text within an element in HTML document,it is not complusory, the value of the dir attribute is either ltr (i.e. left to right) or rtl (i.e. right to left).
  24. refer this: <iframe width=”560″ height=”315″ src=” https://www.youtube.com/embed/[Video ID]I?&autoplay=1″ frameborder=”0″ allowfullscreen></iframe> https://www.4kdownload.com/howto/how-to-autoplay-embedded-youtube-videos
  25. you can use css float property to achieve image side by side refer this: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_images_side_by_side
×
×
  • Create New...