Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to add new file type to upload in wordpress?

Add new file type to upload in wordpress function add_file_types_to_uploads($file_types){ $new_filetypes = array(); $new_filetypes[‘svg’] = ‘image/svg+xml’; $file_types = array_merge($file_types, $new_filetypes ); return $file_types; } add_filter(‘upload_mimes’, ‘add_file_types_to_uploads’);   Get more information

Read More »

How to submit form with anchor tag (link) in jquery?

Submit a form with anchor tag (a and link) in jquery <form method=”get” action=””> <input type=”text” name=”ID” value=”jassi”> <input type=”text” name=”con” value=”singh”> <a href=”” onclick=”this.closest(‘form’).submit();return false;” value=”CONSTRUCTION CONTRACT”>CONSTRUCTION CONTRACT</a> </form>

Read More »

How to get Selected Option Text of HTML SELECT using jQuery?

Get Selected Option Text of HTML SELECT using jQuery <select id=”mySelect”>     <option value=”1″>hello</option>     <option value=”2″>bro</option> </select> <input type=”button” id=”test“ value = “test“ /> <script type=”text/javascript”>     $(“#test”).live(“click”, function () {                  var selectedText = $(“#mySelect option:selected”).html();         alert(selectedText);     }); </script>

Read More »