Articles on Trending Technologies

Technical articles with clear explanations and examples

Create multiple select list in Bootstrap

Ankith Reddy
Ankith Reddy
Updated on 12-Jun-2020 514 Views

To create multiple select lists in Bootstrap, use multiple,You can try to run the following code to implement multiple select −ExampleLive Demo           Bootstrap Example                                                             Country                            India                Australia                US                                

Read More

Bootstrap Form Control States

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 385 Views

Bootstrap offers to style for disabled inputs and classes for form validation, Input FocusWhen an input receives: focus, the outline of the input is removed and a box-shadow is applied.Disabled lnputsIf you need to disable an input, simply adding the disabled attribute will not only disable it; it will also change the styling and the mouse cursor when the cursor hovers over the element.Disabled FieldsetsAdd the disabled attribute to a to disable all the controls within the at once.Validation StatesBootstrap includes validation styles for errors, warnings, and success messages. To use, simply add the appropriate class to the parent element.

Read More

How to store and retrieve date into Sqlite3 database using Python?

Rajendra Dharmkar
Rajendra Dharmkar
Updated on 12-Jun-2020 2K+ Views

You can very easily store and retrieve date into Sqlite3 database using the sqlite3 module. When inserting the date in the database, pass the date directly and Python handles it automatically.Exampleimport sqlite3 import datetime conn = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) conn.execute('''CREATE TABLE TEST (ID TEXT PRIMARY KEY NOT NULL, DATE DATE)''') # Save changes conn.commit() # Insert the object directly conn.execute("INSERT INTO TEST (ID, DATE) VALUES (?, ?)", ('My date', datetime.date(2018, 1, 4))) conn.commit() print("Record inserted")OutputThis will give the output −Record insertedNow when you will fetch the values from the database, you will get the date already parsed to the datetime object.Exampleimport ...

Read More

Bootstrap .has-success class

Arjun Thakur
Arjun Thakur
Updated on 12-Jun-2020 821 Views

The has-success class allows you to set success action for input −ExampleLive Demo           Bootstrap Example                                                                      Input with success                                                                        

Read More

How to show for loop using a flowchart in JavaScript?

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 12-Jun-2020 1K+ Views

The “for” loop includes loop initialization where we initialize our counter to a starting value. The initialization statement is executed before the loop begins, the test statement which will test if a given condition is true or not. If the condition is true, then the code given inside the loop will be executed, otherwise, the control will come out of the loop.At the end comes the iteration statement where you can increase or decrease your counter. Let us see how to show for loop using flowchart in JavaScript −

Read More

Handling errors in SAP GUI Scripting code

Ayyan
Ayyan
Updated on 12-Jun-2020 2K+ Views

You can take reference from GUI Scripting help section and it can explain things in detail.It provides you default property types as per requirement. If you want to perform next step, stop or abort user step, you can use the following properties.ValueDescriptionSSuccessWWarningEErrorA Abort I  InformationSee the below code that uses above property type to display different messages −Public Sub get_status_bar_value_exit_if_Error()    Dim usr_resp AsString    If(session.findById("wnd[0]/sbar").messagetype = "E"Or       session.findById("wnd[0]/sbar").messagetype= "W") Then    usr_resp =MsgBox(session.findById("wnd[0]/sbar").Text & Chr(13) &"Show the Error in SAP ?", vbYesNo)     If usr_resp =vbYes Then  Else     Callgo_to_Sap_home  End If  End  End If End ...

Read More

What is an alert box in JavaScript?

Krantik Chavan
Krantik Chavan
Updated on 12-Jun-2020 1K+ Views

An alert dialog box is mostly used to give a warning message to the users. For example, if one input field requires to enter some text but the user does not provide any input, then as a part of validation, you can use an alert box to give a warning message.Nonetheless, an alert box can still be used for friendlier messages. Alert box gives only one button "OK" to select and proceed.ExampleYou can try to run the following code to learn how to add an alert box −Live Demo                                         Click the following button to see the result:                          

Read More

Bootstrap .has-warning class

Chandu yadav
Chandu yadav
Updated on 12-Jun-2020 563 Views

The has-warning class allows you to set warning for input.You can try to run the following code to implement has-warning class −ExampleLive Demo           Bootstrap Example                                                                      Input with warning                                                                        

Read More

Bootstrap Form select

Samual Sam
Samual Sam
Updated on 12-Jun-2020 433 Views

A select is used when you want to allow the user to pick from multiple options, but by default, it only allows one.Use for list options with which the user is familiar, such as states or numbers.Use multiple = "multiple" to allow the users to select more than one option.ExampleYou can try to run the following code to implement Bootstrap form selectLive Demo           Bootstrap Example                                                             Country                            India                Australia                US                                

Read More

Bootstrap .has-error class

karthikeya Boyini
karthikeya Boyini
Updated on 12-Jun-2020 3K+ Views

The has-error class allows you to set error for input.You can try to run the following code to implement the has-error classExampleLive Demo           Bootstrap Example                                                                      Input with error                                                                        

Read More
Showing 46171–46180 of 61,248 articles
Advertisements